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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.221/1.221, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009296/0.0009296, allocations: 95.92 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007954/0.0007955, allocations: 47.92 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1868, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.009592/0.1964, allocations: 11.6 MB / 385.4 MB, free: 36.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004634/0.2011, allocations: 3.193 MB / 388.6 MB, free: 33.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.2026, allocations: 35.44 kB / 388.7 MB, free: 33.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.2042, allocations: 0.5512 MB / 389.2 MB, free: 33.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001355/0.2056, allocations: 0.5864 MB / 389.8 MB, free: 33.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.2061, allocations: 352.3 kB / 390.1 MB, free: 32.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.2074, allocations: 2.147 MB / 392.3 MB, free: 30.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007625/0.2082, allocations: 0.8589 MB / 393.1 MB, free: 30.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005157/0.2087, allocations: 0.7583 MB / 393.9 MB, free: 29.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005771/0.2093, allocations: 0.8593 MB / 394.8 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.2094, allocations: 136 kB / 394.9 MB, free: 28.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.2097, allocations: 172 kB / 395.1 MB, free: 28.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.2099, allocations: 350.4 kB / 395.4 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005044/0.2104, allocations: 0.9367 MB / 396.3 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.2117, allocations: 2.581 MB / 398.9 MB, free: 24.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2117, allocations: 4 kB / 398.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2117, allocations: 4 kB / 398.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.2117, allocations: 0 / 398.9 MB, free: 24.27 MB / 298.7 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.0024/0.2141, allocations: 2.06 MB / 401 MB, free: 22.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.2142, allocations: 8.031 kB / 401 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005841/0.2148, allocations: 250.5 kB / 401.2 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.2159, allocations: 1.024 MB / 402.3 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.911e-05/0.2159, allocations: 119.5 kB / 402.4 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.2161, allocations: 167.8 kB / 402.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.2177, allocations: 1.483 MB / 404 MB, free: 18.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.733e-05/0.2178, allocations: 7.906 kB / 404 MB, free: 18.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.643e-05/0.2179, allocations: 60 kB / 404.1 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.2179, allocations: 40 kB / 404.1 MB, free: 18.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.2193, allocations: 0.9785 MB / 405.1 MB, free: 17.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004917/0.2242, allocations: 6.582 MB / 411.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/0.2248, allocations: 399.8 kB / 412.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003216/0.2252, allocations: 222.1 kB / 412.3 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.2252, allocations: 8.422 kB / 412.3 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003832/0.2256, allocations: 268.7 kB / 412.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.724e-06/0.2256, allocations: 0 / 412.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.002183/0.2278, allocations: 1.758 MB / 414.3 MB, free: 8.195 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.2278, allocations: 166.8 kB / 414.5 MB, free: 7.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.2289, allocations: 1.277 MB / 415.8 MB, free: 6.703 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.229, allocations: 33.7 kB / 415.8 MB, free: 6.664 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/0.2293, allocations: 0.8712 MB / 416.7 MB, free: 5.781 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.451e-05/0.2294, allocations: 209.2 kB / 416.9 MB, free: 5.574 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.2296, allocations: 214.7 kB / 417.1 MB, free: 5.355 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.454e-05/0.2297, allocations: 357.8 kB / 417.4 MB, free: 5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003474/0.23, allocations: 230.5 kB / 417.7 MB, free: 4.777 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005025/0.2305, allocations: 0.7995 MB / 418.5 MB, free: 3.699 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008796/0.2314, allocations: 1.122 MB / 419.6 MB, free: 2.309 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.2314, allocations: 8 kB / 419.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00132/0.2328, allocations: 1.173 MB / 420.8 MB, free: 1.105 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.2328, allocations: 41.83 kB / 420.8 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.2328, allocations: 24 kB / 420.8 MB, free: 1.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001679/0.233, allocations: 65.64 kB / 420.9 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006162/0.2336, allocations: 267.5 kB / 421.2 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.2351, allocations: 2.583 MB / 423.7 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.2358, allocations: 63.89 kB / 423.8 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.2359, allocations: 64 kB / 423.9 MB, free: 13.73 MB / 314.7 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.0004176/0.2363, allocations: 369.3 kB / 424.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.2365, allocations: 126.4 kB / 424.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009534/0.2374, allocations: 0.5489 MB / 424.9 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.2374, allocations: 16.02 kB / 424.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2374, allocations: 4 kB / 424.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2375, allocations: 3.984 kB / 424.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.2398, allocations: 1.865 MB / 426.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.2398, allocations: 4 kB / 426.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003817/0.2402, allocations: 103.8 kB / 426.9 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001284/0.2404, allocations: 50.12 kB / 426.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.2404, allocations: 20 kB / 427 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001504/0.2419, allocations: 2.548 MB / 429.5 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.2419, allocations: 7.984 kB / 429.5 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00649/0.2484, allocations: 6.477 MB / 436 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/0.2487, allocations: 251.5 kB / 436.2 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.2488, allocations: 16 kB / 436.3 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/0.2493, allocations: 35.97 kB / 436.3 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.181e-05/0.2494, allocations: 55.81 kB / 436.3 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.613e-05/0.2495, allocations: 20 kB / 436.4 MB, free: 312 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001001/0.2505, allocations: 0.8423 MB / 437.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2505, allocations: 4 kB / 437.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001103/0.2516, allocations: 432 kB / 437.6 MB, free: 15.03 MB / 330.7 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.0001948/0.2518, allocations: 135 kB / 437.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.2531, allocations: 0.914 MB / 438.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.2531, allocations: 4 kB / 438.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006451/0.2537, allocations: 473.9 kB / 439.1 MB, free: 13.44 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.2552, allocations: 315.2 kB / 439.5 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.2594, allocations: 3.724 MB / 443.2 MB, free: 9.309 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006941/0.2601, allocations: 1.19 MB / 444.4 MB, free: 8.086 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005853/0.2607, allocations: 171.3 kB / 444.5 MB, free: 7.914 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.2609, allocations: 87.44 kB / 444.6 MB, free: 7.832 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2609, allocations: 0 / 444.6 MB, free: 7.832 MB / 330.7 MB Notification: Performance of Templates: time 0.02363/0.2845, allocations: 15.41 MB / 460 MB, free: 8.434 MB / 346.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","../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