Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 201.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000725/0.0007251, allocations: 100.1 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002056, allocations: 8 kB / 360.7 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.004632/0.2047, allocations: 6.31 MB / 418.4 MB, free: 19.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.2071, allocations: 2.637 MB / 421 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003041/0.2075, allocations: 23.94 kB / 421 MB, free: 16.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008625/0.2083, allocations: 449.7 kB / 421.5 MB, free: 16.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004846/0.2088, allocations: 321.7 kB / 421.8 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.2091, allocations: 191.7 kB / 422 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006434/0.2097, allocations: 1.128 MB / 423.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.2102, allocations: 434.7 kB / 423.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003338/0.2105, allocations: 390.1 kB / 423.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.2108, allocations: 429.8 kB / 424.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.172e-05/0.2109, allocations: 56 kB / 424.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.2111, allocations: 83.98 kB / 424.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.444e-05/0.2112, allocations: 171.1 kB / 424.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000281/0.2115, allocations: 0.4952 MB / 425.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007297/0.2122, allocations: 1.343 MB / 426.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2122, allocations: 0 / 426.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2122, allocations: 0 / 426.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.2122, allocations: 3.938 kB / 426.5 MB, free: 11.32 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001292/0.2135, allocations: 1.091 MB / 427.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.2136, allocations: 12.03 kB / 427.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000386/0.214, allocations: 147.6 kB / 427.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006778/0.2147, allocations: 0.6377 MB / 428.4 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.2147, allocations: 54.38 kB / 428.4 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.543e-05/0.2148, allocations: 84.28 kB / 428.5 MB, free: 9.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.2159, allocations: 0.7871 MB / 429.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.2159, allocations: 4 kB / 429.3 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.117e-05/0.2159, allocations: 35.98 kB / 429.3 MB, free: 8.352 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.216, allocations: 23.98 kB / 429.3 MB, free: 8.328 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000808/0.2168, allocations: 0.527 MB / 429.9 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.2197, allocations: 3.411 MB / 433.3 MB, free: 4.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/0.2201, allocations: 239.2 kB / 433.5 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/0.2203, allocations: 116.8 kB / 433.6 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.2204, allocations: 0 / 433.6 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.64e-05/0.2204, allocations: 38.55 kB / 433.7 MB, free: 3.773 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.002e-06/0.2204, allocations: 4 kB / 433.7 MB, free: 3.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001587/0.222, allocations: 1.091 MB / 434.8 MB, free: 2.609 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.222, allocations: 81.34 kB / 434.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006514/0.2227, allocations: 0.727 MB / 435.6 MB, free: 1.777 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.2227, allocations: 29.7 kB / 435.6 MB, free: 1.742 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.2229, allocations: 0.4904 MB / 436.1 MB, free: 1.242 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.067e-05/0.223, allocations: 106.5 kB / 436.2 MB, free: 1.137 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.548e-05/0.223, allocations: 8 kB / 436.2 MB, free: 1.129 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.075e-05/0.2231, allocations: 378.8 kB / 436.6 MB, free: 0.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.2233, allocations: 133.2 kB / 436.7 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.2236, allocations: 426.1 kB / 437.1 MB, free: 72 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007353/0.2243, allocations: 0.5832 MB / 437.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2244, allocations: 4 kB / 437.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009582/0.2253, allocations: 0.6172 MB / 438.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2254, allocations: 8 kB / 438.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.2254, allocations: 12 kB / 438.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001289/0.2255, allocations: 37.19 kB / 438.4 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.2259, allocations: 147.7 kB / 438.5 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009032/0.2268, allocations: 1.28 MB / 439.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.2272, allocations: 39.89 kB / 439.8 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.2273, allocations: 28 kB / 439.9 MB, free: 13.04 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000271/0.2276, allocations: 253.5 kB / 440.1 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.379e-05/0.2276, allocations: 67.16 kB / 440.2 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006227/0.2283, allocations: 336 kB / 440.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2283, allocations: 4 kB / 440.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2283, allocations: 3.938 kB / 440.5 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2283, allocations: 3.938 kB / 440.5 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.2298, allocations: 1.116 MB / 441.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.2298, allocations: 12.02 kB / 441.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002616/0.2301, allocations: 59.91 kB / 441.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.237e-05/0.2301, allocations: 16.86 kB / 441.7 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.2302, allocations: 11.98 kB / 441.7 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008086/0.231, allocations: 1.276 MB / 443 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.231, allocations: 3.938 kB / 443 MB, free: 9.656 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008057/0.2318, allocations: 0.564 MB / 443.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.232, allocations: 180.2 kB / 443.8 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.852e-05/0.2321, allocations: 12 kB / 443.8 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.2324, allocations: 19.98 kB / 443.8 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.2325, allocations: 27.91 kB / 443.8 MB, free: 8.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.2325, allocations: 8 kB / 443.8 MB, free: 8.789 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005865/0.2331, allocations: 0.4951 MB / 444.3 MB, free: 8.297 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2331, allocations: 4 kB / 444.3 MB, free: 8.293 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005549/0.2337, allocations: 156 kB / 444.5 MB, free: 8.141 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000174/0.2339, allocations: 135 kB / 444.6 MB, free: 7.996 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007947/0.2347, allocations: 477.5 kB / 445.1 MB, free: 7.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2347, allocations: 0 / 445.1 MB, free: 7.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.235, allocations: 252.3 kB / 445.3 MB, free: 7.262 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.2361, allocations: 163.1 kB / 445.5 MB, free: 7.105 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.2383, allocations: 1.847 MB / 447.3 MB, free: 5.207 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.2388, allocations: 0.9375 MB / 448.3 MB, free: 4.238 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003233/0.2391, allocations: 86.03 kB / 448.3 MB, free: 4.152 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.725e-05/0.2392, allocations: 51.42 kB / 448.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2392, allocations: 4 kB / 448.4 MB, free: 4.098 MB / 314.7 MB Notification: Performance of Templates: time 0.01421/0.2534, allocations: 7.674 MB / 456.1 MB, free: 12.53 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches