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.001479/0.001479, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.001814/0.001814, allocations: 193.3 kB / 18.2 MB, free: 5.301 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.708/1.708, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001279/0.001279, allocations: 47.92 kB / 280.2 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1446, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01507/0.1597, allocations: 11.61 MB / 338.4 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009537/0.1694, allocations: 3.177 MB / 341.6 MB, free: 5.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002833/0.1723, allocations: 39.94 kB / 341.6 MB, free: 5.898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002635/0.175, allocations: 0.5632 MB / 342.2 MB, free: 5.332 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003667/0.1787, allocations: 0.5779 MB / 342.8 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.18, allocations: 351.7 kB / 343.1 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004007/0.184, allocations: 2.234 MB / 345.3 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.1856, allocations: 0.9889 MB / 346.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.1872, allocations: 0.8365 MB / 347.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.1884, allocations: 0.914 MB / 348.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002532/0.1887, allocations: 216 kB / 348.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004852/0.1892, allocations: 259.9 kB / 348.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000384/0.1896, allocations: 434.4 kB / 349 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.1906, allocations: 1.015 MB / 350 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003232/0.1939, allocations: 2.64 MB / 352.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.1939, allocations: 0 / 352.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.1939, allocations: 4 kB / 352.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.657e-05/0.194, allocations: 0 / 352.6 MB, free: 10.81 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.00439/0.1984, allocations: 2.06 MB / 354.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.584e-05/0.1985, allocations: 8.031 kB / 354.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008792/0.1994, allocations: 254.5 kB / 354.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001719/0.2011, allocations: 1.028 MB / 356 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.985e-05/0.2012, allocations: 119.4 kB / 356.1 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000222/0.2014, allocations: 159.8 kB / 356.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002913/0.2044, allocations: 1.487 MB / 357.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.01e-05/0.2044, allocations: 11.84 kB / 357.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.2046, allocations: 60 kB / 357.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/0.2046, allocations: 40 kB / 357.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/0.2066, allocations: 0.9707 MB / 358.8 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.2176, allocations: 6.582 MB / 365.4 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009847/0.2187, allocations: 388.2 kB / 365.8 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004988/0.2192, allocations: 234 kB / 366 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.683e-05/0.2193, allocations: 12.42 kB / 366 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008297/0.2201, allocations: 268.8 kB / 366.3 MB, free: 12.58 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 3.186e-06/0.2201, allocations: 0 / 366.3 MB, free: 12.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.006627/0.2268, allocations: 1.758 MB / 368 MB, free: 10.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002772/0.2271, allocations: 166.7 kB / 368.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003577/0.2307, allocations: 1.281 MB / 369.5 MB, free: 9.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.2309, allocations: 33.7 kB / 369.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.2322, allocations: 0.8712 MB / 370.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000311/0.2325, allocations: 205.2 kB / 370.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005014/0.233, allocations: 218.6 kB / 370.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002845/0.2333, allocations: 353.9 kB / 371.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.2346, allocations: 230.5 kB / 371.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.2361, allocations: 0.8034 MB / 372.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002596/0.2387, allocations: 1.122 MB / 373.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.253e-05/0.2388, allocations: 8 kB / 373.3 MB, free: 4.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004656/0.2435, allocations: 1.165 MB / 374.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001508/0.2437, allocations: 46.41 kB / 374.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.991e-05/0.2438, allocations: 20 kB / 374.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006077/0.2444, allocations: 69.64 kB / 374.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/0.2467, allocations: 263.6 kB / 374.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003722/0.2504, allocations: 2.784 MB / 377.6 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/0.2527, allocations: 63.89 kB / 377.7 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/0.253, allocations: 59.98 kB / 377.7 MB, free: 56 kB / 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.2532/0.5062, allocations: 355.8 kB / 378.1 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003945/0.5066, allocations: 134.2 kB / 378.2 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/0.5079, allocations: 0.5492 MB / 378.8 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.5079, allocations: 7.969 kB / 378.8 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.5079, allocations: 2.094 kB / 378.8 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.5079, allocations: 4.359 kB / 378.8 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003514/0.5114, allocations: 1.869 MB / 380.7 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.5115, allocations: 3.656 kB / 380.7 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004503/0.5119, allocations: 106.2 kB / 380.8 MB, free: 50.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001583/0.5121, allocations: 48.2 kB / 380.8 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.5121, allocations: 14.75 kB / 380.8 MB, free: 50.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.5137, allocations: 2.745 MB / 383.6 MB, free: 48.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/0.5137, allocations: 14.03 kB / 383.6 MB, free: 48.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.5157, allocations: 0.9179 MB / 384.5 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006241/0.5163, allocations: 261 kB / 384.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.5165, allocations: 17.38 kB / 384.8 MB, free: 47.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.517, allocations: 31.09 kB / 384.8 MB, free: 47.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.5172, allocations: 57.75 kB / 384.9 MB, free: 47.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.06e-05/0.5173, allocations: 20.06 kB / 384.9 MB, free: 47.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001536/0.5188, allocations: 0.844 MB / 385.7 MB, free: 47.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5188, allocations: 0 / 385.7 MB, free: 47.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001717/0.5205, allocations: 304.8 kB / 386 MB, free: 47.01 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.0003669/0.5209, allocations: 131.5 kB / 386.2 MB, free: 46.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.5233, allocations: 0.9437 MB / 387.1 MB, free: 46.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.5233, allocations: 1.438 kB / 387.1 MB, free: 46.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008609/0.5242, allocations: 475.8 kB / 387.6 MB, free: 46.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.5261, allocations: 346.7 kB / 387.9 MB, free: 45.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005108/0.5313, allocations: 3.149 MB / 391 MB, free: 43.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.5327, allocations: 1.176 MB / 392.2 MB, free: 43.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.5338, allocations: 172.7 kB / 392.4 MB, free: 43.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.534, allocations: 85.23 kB / 392.5 MB, free: 43.12 MB / 318.1 MB Notification: Performance of SimCode: time 1.112e-06/0.534, allocations: 0 / 392.5 MB, free: 43.12 MB / 318.1 MB Notification: Performance of Templates: time 0.02871/0.5627, allocations: 14.89 MB / 407.4 MB, free: 34.53 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