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.002143/0.002143, allocations: 96 kB / 17.3 MB, free: 6.387 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.002724/0.002724, allocations: 176.8 kB / 18.21 MB, free: 5.551 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.898/1.898, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005049/0.000505, allocations: 12 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.132, allocations: 47.58 MB / 329 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01412/0.1462, allocations: 11.02 MB / 340 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008057/0.1543, allocations: 3.173 MB / 343.2 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002366/0.1567, allocations: 35.94 kB / 343.2 MB, free: 5.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002657/0.1594, allocations: 0.5515 MB / 343.7 MB, free: 4.898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003551/0.163, allocations: 0.5857 MB / 344.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.1644, allocations: 355.6 kB / 344.7 MB, free: 3.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005236/0.1696, allocations: 2.121 MB / 346.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001877/0.1715, allocations: 0.8424 MB / 347.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001845/0.1734, allocations: 0.6881 MB / 348.3 MB, free: 264 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.1744, allocations: 0.7812 MB / 349.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001689/0.1746, allocations: 104 kB / 349.2 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003691/0.175, allocations: 136 kB / 349.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000256/0.1752, allocations: 302.5 kB / 349.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001337/0.1766, allocations: 0.9071 MB / 350.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003044/0.1796, allocations: 2.502 MB / 353 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.1797, allocations: 0 / 353 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.581e-06/0.1797, allocations: 4 kB / 353 MB, free: 11.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.828e-05/0.1798, allocations: 0 / 353 MB, free: 11.51 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.00377/0.1835, allocations: 1.748 MB / 354.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.1836, allocations: 12.03 kB / 354.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008978/0.1845, allocations: 254.5 kB / 355.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.1864, allocations: 1.036 MB / 356.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.1865, allocations: 111.5 kB / 356.2 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000246/0.1868, allocations: 163.8 kB / 356.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002932/0.1897, allocations: 1.491 MB / 357.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.025e-05/0.1898, allocations: 8 kB / 357.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.1899, allocations: 64 kB / 357.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.153e-05/0.19, allocations: 40 kB / 358 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.1919, allocations: 0.9824 MB / 358.9 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.202, allocations: 6.605 MB / 365.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009091/0.203, allocations: 415.8 kB / 366 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000453/0.2034, allocations: 226.1 kB / 366.2 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.2035, allocations: 4.438 kB / 366.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006246/0.2041, allocations: 272.8 kB / 366.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 3.757e-06/0.2041, allocations: 4 kB / 366.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004481/0.2086, allocations: 1.793 MB / 368.2 MB, free: 11.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.2088, allocations: 166.8 kB / 368.4 MB, free: 11.44 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002023/0.2108, allocations: 1.265 MB / 369.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.2108, allocations: 37.7 kB / 369.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007859/0.2116, allocations: 0.8751 MB / 370.6 MB, free: 9.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.2119, allocations: 213.2 kB / 370.8 MB, free: 9.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.212, allocations: 93.67 kB / 370.9 MB, free: 8.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.2122, allocations: 353.9 kB / 371.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005662/0.2128, allocations: 238.5 kB / 371.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009707/0.2138, allocations: 0.8073 MB / 372.3 MB, free: 7.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/0.2154, allocations: 1.13 MB / 373.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/0.2155, allocations: 8 kB / 373.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002448/0.2179, allocations: 1.188 MB / 374.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.203e-05/0.218, allocations: 37.7 kB / 374.6 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.405e-05/0.218, allocations: 20 kB / 374.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002789/0.2183, allocations: 70.08 kB / 374.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000786/0.2191, allocations: 275.5 kB / 375 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.2212, allocations: 2.575 MB / 377.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.2224, allocations: 76.05 kB / 377.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.939e-05/0.2225, allocations: 56 kB / 377.7 MB, free: 1.262 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.0008234/0.2234, allocations: 377.1 kB / 378.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/0.2235, allocations: 130.4 kB / 378.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.2247, allocations: 0.5528 MB / 378.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.2247, allocations: 11.94 kB / 378.8 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.2247, allocations: 4 kB / 378.8 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.2247, allocations: 0 / 378.8 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3147/0.5395, allocations: 1.879 MB / 380.6 MB, free: 50.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.5396, allocations: 4.734 kB / 380.6 MB, free: 50.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007534/0.5403, allocations: 107.6 kB / 380.7 MB, free: 50.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002848/0.5406, allocations: 43.14 kB / 380.8 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.589e-05/0.5407, allocations: 16.94 kB / 380.8 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.543, allocations: 2.553 MB / 383.4 MB, free: 47.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-05/0.5431, allocations: 7.938 kB / 383.4 MB, free: 47.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003477/0.5466, allocations: 0.9353 MB / 384.3 MB, free: 47.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.5478, allocations: 258.9 kB / 384.6 MB, free: 47.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.548, allocations: 16.09 kB / 384.6 MB, free: 47.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008712/0.5489, allocations: 36.25 kB / 384.6 MB, free: 47.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000278/0.5492, allocations: 56.62 kB / 384.7 MB, free: 47.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.5493, allocations: 19.67 kB / 384.7 MB, free: 47.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002278/0.5516, allocations: 0.8443 MB / 385.5 MB, free: 47.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.5516, allocations: 0 / 385.5 MB, free: 47.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002776/0.5544, allocations: 305 kB / 385.8 MB, free: 47.05 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.0004217/0.5548, allocations: 135.8 kB / 386 MB, free: 46.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002707/0.5575, allocations: 0.9278 MB / 386.9 MB, free: 46.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.5576, allocations: 2.312 kB / 386.9 MB, free: 46.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.5587, allocations: 481.9 kB / 387.4 MB, free: 46.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004254/0.563, allocations: 322.7 kB / 387.7 MB, free: 46.06 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007988/0.571, allocations: 3.256 MB / 390.9 MB, free: 43.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.5723, allocations: 1.181 MB / 392.1 MB, free: 43.19 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001225/0.5735, allocations: 168.5 kB / 392.3 MB, free: 43.15 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002767/0.5738, allocations: 84.59 kB / 392.4 MB, free: 43.14 MB / 318.1 MB Notification: Performance of SimCode: time 1.954e-06/0.5738, allocations: 0 / 392.4 MB, free: 43.14 MB / 318.1 MB Notification: Performance of Templates: time 0.03728/0.6111, allocations: 14.17 MB / 406.5 MB, free: 35.31 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 -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/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