Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 107.2 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.1 MB / 225.1 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 55.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01266/0.1198, allocations: 11.69 MB / 340.4 MB, free: 7.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006418/0.1263, allocations: 3.216 MB / 343.6 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.1277, allocations: 35.94 kB / 343.7 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.1295, allocations: 0.6517 MB / 344.3 MB, free: 4.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.1315, allocations: 0.6665 MB / 345 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008073/0.1323, allocations: 403.5 kB / 345.4 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002338/0.1346, allocations: 2.25 MB / 347.6 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.1358, allocations: 0.9772 MB / 348.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001024/0.1369, allocations: 0.8366 MB / 349.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.1379, allocations: 0.91 MB / 350.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002393/0.1381, allocations: 220 kB / 350.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004482/0.1386, allocations: 256 kB / 350.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002911/0.1389, allocations: 430.4 kB / 351.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008946/0.1398, allocations: 1.019 MB / 352.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002235/0.142, allocations: 2.675 MB / 354.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1421, allocations: 0 / 354.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1421, allocations: 4 kB / 354.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.276e-05/0.1421, allocations: 0 / 354.9 MB, free: 9.375 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.003638/0.1457, allocations: 2.068 MB / 357 MB, free: 7.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.1458, allocations: 8.031 kB / 357 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008232/0.1466, allocations: 258.5 kB / 357.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.1483, allocations: 1.048 MB / 358.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.222e-05/0.1484, allocations: 115.4 kB / 358.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/0.1486, allocations: 159.8 kB / 358.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002234/0.1509, allocations: 1.487 MB / 360.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.438e-05/0.1509, allocations: 11.91 kB / 360.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.1511, allocations: 64 kB / 360.1 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.939e-05/0.1511, allocations: 36 kB / 360.2 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.1528, allocations: 0.9786 MB / 361.2 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007168/0.16, allocations: 6.523 MB / 367.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007957/0.1608, allocations: 400.2 kB / 368.1 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000429/0.1612, allocations: 218.1 kB / 368.3 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-05/0.1613, allocations: 4.438 kB / 368.3 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004865/0.1618, allocations: 276.8 kB / 368.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.455e-06/0.1618, allocations: 0 / 368.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003193/0.165, allocations: 1.758 MB / 370.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.1651, allocations: 162.8 kB / 370.5 MB, free: 9.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.1667, allocations: 1.277 MB / 371.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.266e-05/0.1668, allocations: 37.7 kB / 371.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006443/0.1674, allocations: 0.8673 MB / 372.7 MB, free: 6.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.1676, allocations: 205.2 kB / 372.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002712/0.1679, allocations: 230.5 kB / 373.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.168, allocations: 357.9 kB / 373.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004192/0.1684, allocations: 226.5 kB / 373.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008799/0.1693, allocations: 0.7956 MB / 374.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.1707, allocations: 1.126 MB / 375.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.1707, allocations: 8 kB / 375.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001824/0.1725, allocations: 1.169 MB / 376.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.1726, allocations: 37.7 kB / 376.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.1726, allocations: 20 kB / 376.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002318/0.1729, allocations: 65.64 kB / 376.9 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007461/0.1736, allocations: 268 kB / 377.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1779/0.3515, allocations: 2.778 MB / 379.9 MB, free: 49.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.3529, allocations: 66.56 kB / 380 MB, free: 49.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/0.353, allocations: 61.38 kB / 380 MB, free: 49.8 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.0005361/0.3536, allocations: 361.4 kB / 380.4 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3537, allocations: 133.1 kB / 380.5 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009577/0.3547, allocations: 0.5513 MB / 381.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.3547, allocations: 10.09 kB / 381.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3547, allocations: 1.375 kB / 381.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3547, allocations: 2.391 kB / 381.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002784/0.3575, allocations: 1.871 MB / 383 MB, free: 48.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3575, allocations: 3.906 kB / 383 MB, free: 48.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004199/0.3579, allocations: 103.1 kB / 383.1 MB, free: 48.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001405/0.3581, allocations: 42.22 kB / 383.1 MB, free: 48.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.3581, allocations: 15.94 kB / 383.1 MB, free: 48.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.3594, allocations: 2.751 MB / 385.9 MB, free: 46.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3594, allocations: 8.438 kB / 385.9 MB, free: 46.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.3607, allocations: 0.9176 MB / 386.8 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003636/0.361, allocations: 251.4 kB / 387 MB, free: 45.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.3612, allocations: 21.11 kB / 387.1 MB, free: 45.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005051/0.3617, allocations: 34.92 kB / 387.1 MB, free: 45.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3618, allocations: 49.77 kB / 387.1 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.3618, allocations: 20.62 kB / 387.2 MB, free: 45.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001245/0.3631, allocations: 0.8475 MB / 388 MB, free: 45.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.042e-06/0.3631, allocations: 1.219 kB / 388 MB, free: 45.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001169/0.3643, allocations: 305.5 kB / 388.3 MB, free: 45.12 MB / 318.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.0002124/0.3645, allocations: 136.6 kB / 388.4 MB, free: 45.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.3659, allocations: 0.9293 MB / 389.4 MB, free: 44.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.366, allocations: 1.969 kB / 389.4 MB, free: 44.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006227/0.3666, allocations: 477.3 kB / 389.8 MB, free: 44.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.3679, allocations: 337.7 kB / 390.2 MB, free: 44.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.3716, allocations: 2.512 MB / 392.7 MB, free: 42.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007348/0.3723, allocations: 1.175 MB / 393.9 MB, free: 41.94 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005772/0.3729, allocations: 169.3 kB / 394 MB, free: 41.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001842/0.3731, allocations: 88.58 kB / 394.1 MB, free: 41.89 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3731, allocations: 1.094 kB / 394.1 MB, free: 41.89 MB / 318.1 MB Notification: Performance of Templates: time 0.02281/0.3959, allocations: 14.94 MB / 409 MB, free: 33.02 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches