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.001284/0.001284, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001262/0.001262, allocations: 198 kB / 18.07 MB, free: 5.41 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.72/1.72, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001183/0.001184, allocations: 52.2 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1294, allocations: 46.62 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01559/0.1451, allocations: 11.6 MB / 338.2 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.1558, allocations: 3.185 MB / 341.4 MB, free: 6.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003897/0.1599, allocations: 39.88 kB / 341.4 MB, free: 5.988 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.1627, allocations: 0.5593 MB / 342 MB, free: 5.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003701/0.1664, allocations: 0.5896 MB / 342.6 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.1677, allocations: 343.8 kB / 342.9 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00362/0.1713, allocations: 2.124 MB / 345 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001543/0.1729, allocations: 0.8541 MB / 345.9 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.1744, allocations: 0.7467 MB / 346.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.1758, allocations: 0.8554 MB / 347.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002548/0.176, allocations: 139.9 kB / 347.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005696/0.1766, allocations: 176 kB / 347.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003492/0.177, allocations: 350.3 kB / 348.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.1781, allocations: 0.9444 MB / 349.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002747/0.1808, allocations: 2.573 MB / 351.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.1809, allocations: 4 kB / 351.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1809, allocations: 0 / 351.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.29e-05/0.181, allocations: 0 / 351.7 MB, free: 11.68 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.004115/0.1851, allocations: 2.072 MB / 353.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.1851, allocations: 8.031 kB / 353.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000867/0.186, allocations: 250.5 kB / 354 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.1876, allocations: 1.024 MB / 355 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.662e-05/0.1877, allocations: 115.5 kB / 355.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/0.188, allocations: 163.8 kB / 355.3 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002875/0.1908, allocations: 1.483 MB / 356.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.847e-05/0.1909, allocations: 11.84 kB / 356.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.1911, allocations: 60 kB / 356.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-05/0.1911, allocations: 44 kB / 356.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002112/0.1932, allocations: 0.9747 MB / 357.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.2033, allocations: 6.586 MB / 364.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.2044, allocations: 388.2 kB / 364.8 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004885/0.2049, allocations: 226.1 kB / 365 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.327e-05/0.205, allocations: 8.422 kB / 365.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000725/0.2057, allocations: 264.8 kB / 365.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.915e-06/0.2057, allocations: 0 / 365.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003945/0.2097, allocations: 1.758 MB / 367.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.2098, allocations: 166.8 kB / 367.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001964/0.2118, allocations: 1.269 MB / 368.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.662e-05/0.2119, allocations: 37.7 kB / 368.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008744/0.2127, allocations: 0.8751 MB / 369.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.2129, allocations: 205.2 kB / 369.6 MB, free: 8.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000333/0.2133, allocations: 218.6 kB / 369.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.2135, allocations: 353.8 kB / 370.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004943/0.214, allocations: 238.5 kB / 370.4 MB, free: 8.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.2152, allocations: 0.7995 MB / 371.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.2169, allocations: 1.122 MB / 372.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.2169, allocations: 8 kB / 372.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002261/0.2192, allocations: 1.169 MB / 373.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.718e-05/0.2192, allocations: 41.7 kB / 373.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/0.2193, allocations: 23.98 kB / 373.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003128/0.2196, allocations: 73.5 kB / 373.6 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007871/0.2204, allocations: 263.6 kB / 373.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002709/0.2231, allocations: 2.583 MB / 376.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.2244, allocations: 68.02 kB / 376.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.268e-05/0.2245, allocations: 63.98 kB / 376.6 MB, free: 1.125 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.0007795/0.2253, allocations: 357.3 kB / 377 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/0.2255, allocations: 130.4 kB / 377.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.2266, allocations: 0.549 MB / 377.6 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.2266, allocations: 11.92 kB / 377.6 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.2266, allocations: 4 kB / 377.7 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.2267, allocations: 3.984 kB / 377.7 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2595/0.4862, allocations: 1.869 MB / 379.5 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.4863, allocations: 3.906 kB / 379.5 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/0.4867, allocations: 106.3 kB / 379.6 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001747/0.4869, allocations: 40.81 kB / 379.7 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.656e-05/0.487, allocations: 16.98 kB / 379.7 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.4883, allocations: 2.548 MB / 382.2 MB, free: 49.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/0.4883, allocations: 7.844 kB / 382.2 MB, free: 49.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.49, allocations: 0.9261 MB / 383.2 MB, free: 48.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005728/0.4906, allocations: 258.1 kB / 383.4 MB, free: 48.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.4908, allocations: 17.47 kB / 383.4 MB, free: 48.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005197/0.4913, allocations: 28.75 kB / 383.5 MB, free: 48.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.4914, allocations: 60.08 kB / 383.5 MB, free: 48.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.4915, allocations: 19.45 kB / 383.5 MB, free: 48.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001315/0.4928, allocations: 0.8437 MB / 384.4 MB, free: 48.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4928, allocations: 1.031 kB / 384.4 MB, free: 48.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001309/0.4941, allocations: 304.9 kB / 384.7 MB, free: 48.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.0002563/0.4944, allocations: 139 kB / 384.8 MB, free: 48.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.496, allocations: 0.9131 MB / 385.7 MB, free: 47.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.4961, allocations: 1.031 kB / 385.7 MB, free: 47.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007307/0.4968, allocations: 478.2 kB / 386.2 MB, free: 47.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001542/0.4984, allocations: 317.3 kB / 386.5 MB, free: 47.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004255/0.5026, allocations: 3.152 MB / 389.7 MB, free: 45.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008319/0.5035, allocations: 1.181 MB / 390.8 MB, free: 44.31 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000832/0.5043, allocations: 167.1 kB / 391 MB, free: 44.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002048/0.5045, allocations: 89.55 kB / 391.1 MB, free: 44.27 MB / 318.1 MB Notification: Performance of SimCode: time 1.253e-06/0.5045, allocations: 3.719 kB / 391.1 MB, free: 44.27 MB / 318.1 MB Notification: Performance of Templates: time 0.02892/0.5335, allocations: 14.24 MB / 405.3 MB, free: 36.61 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