Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.95 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09466/0.09592, allocations: 50.53 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01214/0.1081, allocations: 11.75 MB / 370.7 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.164/0.2721, allocations: 3.262 MB / 373.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001548/0.2737, allocations: 38.81 kB / 374 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.2755, allocations: 0.6399 MB / 374.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0022/0.2777, allocations: 0.6765 MB / 375.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009948/0.2787, allocations: 405.1 kB / 375.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002737/0.2814, allocations: 2.243 MB / 377.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.2827, allocations: 0.9967 MB / 378.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.2841, allocations: 0.8385 MB / 379.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009684/0.2851, allocations: 0.9144 MB / 380.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002449/0.2854, allocations: 217.8 kB / 380.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004822/0.2859, allocations: 260.3 kB / 381.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002681/0.2861, allocations: 431 kB / 381.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008034/0.2869, allocations: 1.017 MB / 382.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002985/0.2899, allocations: 2.682 MB / 385.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.29, allocations: 0 / 385.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.29, allocations: 0 / 385.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.047e-05/0.29, allocations: 0 / 385.2 MB, free: 7.434 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003591/0.2936, allocations: 2.067 MB / 387.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.2937, allocations: 8.938 kB / 387.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007814/0.2945, allocations: 257.2 kB / 387.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001562/0.296, allocations: 1.042 MB / 388.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.359e-05/0.2961, allocations: 113.4 kB / 388.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.2963, allocations: 161.7 kB / 388.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.2986, allocations: 1.485 MB / 390.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.56e-05/0.2986, allocations: 14.67 kB / 390.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.2987, allocations: 66.22 kB / 390.5 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.19e-05/0.2988, allocations: 39.56 kB / 390.5 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.3004, allocations: 0.9707 MB / 391.5 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007044/0.3075, allocations: 6.512 MB / 398 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007824/0.3083, allocations: 400.4 kB / 398.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004051/0.3087, allocations: 223 kB / 398.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.512e-05/0.3088, allocations: 5.938 kB / 398.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004992/0.3093, allocations: 276.3 kB / 398.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.505e-06/0.3093, allocations: 0 / 398.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003489/0.3128, allocations: 1.761 MB / 400.6 MB, free: 12.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/0.3129, allocations: 160.9 kB / 400.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.3146, allocations: 1.275 MB / 402.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.3146, allocations: 36.36 kB / 402.1 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006229/0.3153, allocations: 0.8746 MB / 403 MB, free: 10.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.3154, allocations: 207.1 kB / 403.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.3157, allocations: 217 kB / 403.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3158, allocations: 357.5 kB / 403.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004215/0.3163, allocations: 236.9 kB / 404 MB, free: 10.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007572/0.317, allocations: 0.797 MB / 404.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.3183, allocations: 1.123 MB / 405.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-06/0.3183, allocations: 6.406 kB / 405.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001873/0.3202, allocations: 1.175 MB / 407.1 MB, free: 7.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.3202, allocations: 39.2 kB / 407.1 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.3202, allocations: 19.69 kB / 407.1 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.3205, allocations: 72.55 kB / 407.2 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007498/0.3212, allocations: 268.6 kB / 407.4 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.323, allocations: 2.765 MB / 410.2 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.3241, allocations: 67.88 kB / 410.3 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-05/0.3242, allocations: 64.09 kB / 410.3 MB, free: 4.148 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005688/0.3247, allocations: 365.3 kB / 410.7 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.3249, allocations: 134.3 kB / 410.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000962/0.3259, allocations: 0.549 MB / 411.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3259, allocations: 19.97 kB / 411.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3259, allocations: 0 / 411.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3259, allocations: 0 / 411.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.3286, allocations: 1.868 MB / 413.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.3286, allocations: 7.984 kB / 413.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004286/0.329, allocations: 103.8 kB / 413.4 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001571/0.3292, allocations: 53.62 kB / 413.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.3292, allocations: 8 kB / 413.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/0.3311, allocations: 2.742 MB / 416.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.3312, allocations: 8.094 kB / 416.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.3325, allocations: 0.9267 MB / 417.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005296/0.333, allocations: 263.3 kB / 417.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002364/0.3333, allocations: 16 kB / 417.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.3339, allocations: 31.97 kB / 417.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.334, allocations: 55.83 kB / 417.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.334, allocations: 19.98 kB / 417.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001263/0.3353, allocations: 0.8461 MB / 418.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3353, allocations: 0 / 418.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001253/0.3366, allocations: 304 kB / 418.6 MB, free: 11.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000253/0.3368, allocations: 132.7 kB / 418.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.3384, allocations: 0.9364 MB / 419.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3384, allocations: 0 / 419.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006794/0.3391, allocations: 463.5 kB / 420.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.3407, allocations: 348.3 kB / 420.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/0.3448, allocations: 2.488 MB / 423 MB, free: 6.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008188/0.3457, allocations: 1.185 MB / 424.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005658/0.3462, allocations: 175.3 kB / 424.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.3464, allocations: 83.44 kB / 424.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3464, allocations: 0 / 424.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of Templates: time 0.02678/0.3732, allocations: 14.98 MB / 439.4 MB, free: 6.602 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches