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.001729/0.001729, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001625/0.001625, allocations: 192 kB / 18.51 MB, free: 4.508 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.594/1.594, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001263/0.001263, allocations: 55.92 kB / 280.7 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1234, allocations: 46.63 MB / 327.3 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01281/0.1363, allocations: 11.68 MB / 339 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006596/0.1429, allocations: 3.223 MB / 342.2 MB, free: 5.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.1443, allocations: 35.94 kB / 342.2 MB, free: 5.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.1461, allocations: 0.644 MB / 342.9 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001822/0.1479, allocations: 0.6743 MB / 343.5 MB, free: 4.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008314/0.1488, allocations: 399.5 kB / 343.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00266/0.1515, allocations: 2.23 MB / 346.2 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/0.1528, allocations: 0.9927 MB / 347.2 MB, free: 460 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001258/0.1541, allocations: 0.825 MB / 348 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000971/0.1551, allocations: 0.9139 MB / 348.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002637/0.1554, allocations: 216 kB / 349.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004698/0.1558, allocations: 260 kB / 349.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003463/0.1562, allocations: 430.4 kB / 349.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.1572, allocations: 1.019 MB / 350.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002535/0.1598, allocations: 2.644 MB / 353.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1598, allocations: 4 kB / 353.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1598, allocations: 0 / 353.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.72e-05/0.1598, allocations: 0 / 353.5 MB, free: 10.14 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.004258/0.1641, allocations: 2.064 MB / 355.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.581e-05/0.1642, allocations: 8.031 kB / 355.5 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009393/0.1651, allocations: 258.5 kB / 355.8 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/0.1669, allocations: 1.024 MB / 356.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.167, allocations: 115.5 kB / 356.9 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002353/0.1673, allocations: 163.8 kB / 357.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002538/0.1698, allocations: 1.487 MB / 358.6 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.677e-05/0.1699, allocations: 7.906 kB / 358.6 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.17, allocations: 64 kB / 358.6 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.1701, allocations: 36 kB / 358.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.1718, allocations: 0.9747 MB / 359.6 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008672/0.1805, allocations: 6.578 MB / 366.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009052/0.1814, allocations: 400.2 kB / 366.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004559/0.1819, allocations: 226.1 kB / 366.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.1819, allocations: 8.422 kB / 366.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005711/0.1825, allocations: 272.7 kB / 367.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.104e-06/0.1825, allocations: 0 / 367.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00356/0.1861, allocations: 1.765 MB / 368.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.1862, allocations: 166.8 kB / 369 MB, free: 9.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001745/0.188, allocations: 1.273 MB / 370.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.326e-05/0.188, allocations: 33.7 kB / 370.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007371/0.1888, allocations: 0.879 MB / 371.2 MB, free: 7.629 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.189, allocations: 201.2 kB / 371.4 MB, free: 7.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.1893, allocations: 222.6 kB / 371.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.1895, allocations: 353.9 kB / 372 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004495/0.1899, allocations: 230.5 kB / 372.2 MB, free: 6.629 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009718/0.1909, allocations: 0.7995 MB / 373 MB, free: 5.551 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.1924, allocations: 1.122 MB / 374.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.1924, allocations: 4 kB / 374.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001845/0.1942, allocations: 1.173 MB / 375.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.846e-05/0.1943, allocations: 37.7 kB / 375.3 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.1943, allocations: 20 kB / 375.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002743/0.1946, allocations: 78.16 kB / 375.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007423/0.1954, allocations: 255.6 kB / 375.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2025/0.3979, allocations: 2.773 MB / 378.5 MB, free: 50.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.3995, allocations: 69.88 kB / 378.5 MB, free: 50.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.29e-05/0.3997, allocations: 60.75 kB / 378.6 MB, free: 50.09 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.0007326/0.4004, allocations: 362.5 kB / 378.9 MB, free: 49.97 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.4006, allocations: 130.1 kB / 379.1 MB, free: 49.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.4017, allocations: 0.5603 MB / 379.6 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.4018, allocations: 5.5 kB / 379.6 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.4018, allocations: 2.078 kB / 379.6 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.4018, allocations: 5.25 kB / 379.6 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.405, allocations: 1.866 MB / 381.5 MB, free: 49.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.405, allocations: 4.656 kB / 381.5 MB, free: 49.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.4055, allocations: 105.2 kB / 381.6 MB, free: 49.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001489/0.4056, allocations: 47.25 kB / 381.7 MB, free: 49.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.4057, allocations: 19.94 kB / 381.7 MB, free: 49.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/0.4071, allocations: 2.746 MB / 384.4 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.4072, allocations: 4.219 kB / 384.4 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.4087, allocations: 0.9254 MB / 385.4 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004401/0.4091, allocations: 258.9 kB / 385.6 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.4093, allocations: 16.78 kB / 385.6 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005261/0.4098, allocations: 31.64 kB / 385.7 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.41, allocations: 55.98 kB / 385.7 MB, free: 45.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.41, allocations: 18.5 kB / 385.7 MB, free: 45.85 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001639/0.4117, allocations: 0.8489 MB / 386.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4117, allocations: 0 / 386.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001461/0.4131, allocations: 310.5 kB / 386.9 MB, free: 45.47 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.0002714/0.4134, allocations: 119.8 kB / 387 MB, free: 45.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.4152, allocations: 0.9471 MB / 387.9 MB, free: 44.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4152, allocations: 1.062 kB / 387.9 MB, free: 44.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007127/0.4159, allocations: 480.1 kB / 388.4 MB, free: 44.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.4175, allocations: 338.4 kB / 388.7 MB, free: 44.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004029/0.4215, allocations: 2.546 MB / 391.3 MB, free: 42.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008953/0.4224, allocations: 1.176 MB / 392.5 MB, free: 42.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006609/0.4231, allocations: 169.7 kB / 392.6 MB, free: 42.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.4233, allocations: 84.97 kB / 392.7 MB, free: 42.18 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4233, allocations: 3.938 kB / 392.7 MB, free: 42.18 MB / 318.1 MB Notification: Performance of Templates: time 0.02713/0.4504, allocations: 14.94 MB / 407.7 MB, free: 33.38 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","/var/lib/jenkins/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