Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008918/0.0008918, allocations: 100.3 kB / 17.01 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 197.8 kB / 17.91 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.7 MB / 246.4 MB, free: 9.797 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002614, allocations: 11.98 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1063, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00791/0.1143, allocations: 7.276 MB / 365.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004275/0.1186, allocations: 2.561 MB / 368.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006202/0.1192, allocations: 27.88 kB / 368.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.1204, allocations: 473.3 kB / 369 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009858/0.1214, allocations: 397.1 kB / 369.3 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.1219, allocations: 163.8 kB / 369.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.1232, allocations: 1.358 MB / 370.9 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00061/0.1239, allocations: 431.3 kB / 371.3 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006116/0.1245, allocations: 473.9 kB / 371.8 MB, free: 248 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1916/0.3161, allocations: 0.499 MB / 372.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004708/0.3166, allocations: 65.97 kB / 372.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007507/0.3174, allocations: 105.4 kB / 372.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.3176, allocations: 199 kB / 372.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004161/0.318, allocations: 266.3 kB / 372.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001895/0.3199, allocations: 1.376 MB / 374.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.32, allocations: 0.8438 kB / 374.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.32, allocations: 0.9688 kB / 374.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.398e-05/0.32, allocations: 0 / 374.2 MB, free: 10.21 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002405/0.3224, allocations: 1.294 MB / 375.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.3225, allocations: 10.61 kB / 375.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009215/0.3234, allocations: 204.5 kB / 375.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.3249, allocations: 0.7211 MB / 376.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-05/0.325, allocations: 71.41 kB / 376.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.3252, allocations: 105.3 kB / 376.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.327, allocations: 0.9426 MB / 377.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.78e-05/0.3271, allocations: 2.938 kB / 377.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.824e-05/0.3272, allocations: 42 kB / 377.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.702e-05/0.3272, allocations: 24.75 kB / 377.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.3286, allocations: 0.6579 MB / 378.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005468/0.334, allocations: 3.974 MB / 382.3 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006864/0.3347, allocations: 455.7 kB / 382.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005828/0.3353, allocations: 277.3 kB / 383 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.3354, allocations: 7.062 kB / 383 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.3354, allocations: 37.66 kB / 383 MB, free: 7.043 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.174e-06/0.3354, allocations: 2.516 kB / 383.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003329/0.3388, allocations: 1.576 MB / 384.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.3388, allocations: 81.64 kB / 384.7 MB, free: 6.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.3401, allocations: 0.8322 MB / 385.5 MB, free: 6.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.3402, allocations: 35.67 kB / 385.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.3405, allocations: 0.5653 MB / 386.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.3406, allocations: 164.8 kB / 386.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.3406, allocations: 12.75 kB / 386.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.489e-05/0.3407, allocations: 340.3 kB / 386.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003492/0.3411, allocations: 176 kB / 386.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004727/0.3416, allocations: 484.3 kB / 387.3 MB, free: 5.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004284/0.342, allocations: 251.9 kB / 387.5 MB, free: 5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.342, allocations: 2.625 kB / 387.5 MB, free: 5 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001386/0.3434, allocations: 0.7987 MB / 388.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.3434, allocations: 9 kB / 388.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3435, allocations: 9.375 kB / 388.4 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.3437, allocations: 87.27 kB / 388.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000525/0.3443, allocations: 155.3 kB / 388.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001714/0.346, allocations: 2.875 MB / 391.5 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007117/0.3467, allocations: 40.69 kB / 391.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.3468, allocations: 40.05 kB / 391.5 MB, free: 2.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004623/0.3473, allocations: 263.7 kB / 391.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.3474, allocations: 89.78 kB / 391.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009195/0.3483, allocations: 0.5072 MB / 392.4 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.3483, allocations: 5.469 kB / 392.4 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3484, allocations: 1.344 kB / 392.4 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3484, allocations: 11.88 kB / 392.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002244/0.3506, allocations: 1.495 MB / 393.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3506, allocations: 2.594 kB / 393.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/0.351, allocations: 79.05 kB / 394 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001937/0.3512, allocations: 70.61 kB / 394.1 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.3512, allocations: 17.41 kB / 394.1 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.3533, allocations: 2.853 MB / 396.9 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3533, allocations: 4.094 kB / 396.9 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.3548, allocations: 0.8139 MB / 397.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004092/0.3552, allocations: 202 kB / 397.9 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.3553, allocations: 16.52 kB / 398 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.3558, allocations: 36.47 kB / 398 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.954e-05/0.3559, allocations: 37.61 kB / 398 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.3559, allocations: 10.59 kB / 398 MB, free: 13.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009125/0.3568, allocations: 0.5667 MB / 398.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3568, allocations: 1.969 kB / 398.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001022/0.3579, allocations: 209.8 kB / 398.8 MB, free: 12.83 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002194/0.3581, allocations: 125.2 kB / 398.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.3594, allocations: 0.7154 MB / 399.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3594, allocations: 1.031 kB / 399.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006585/0.3601, allocations: 463.8 kB / 400.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.3612, allocations: 221.8 kB / 400.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.3645, allocations: 2.143 MB / 402.5 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008422/0.3654, allocations: 1.018 MB / 403.5 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005224/0.3659, allocations: 104.9 kB / 403.6 MB, free: 9.457 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.3661, allocations: 60.14 kB / 403.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3661, allocations: 0 / 403.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of Templates: time 0.02011/0.3862, allocations: 9.819 MB / 413.5 MB, free: 1.902 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches