Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009596/0.0009597, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007538/0.0007535, allocations: 98.78 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002036/0.0002037, allocations: 4 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1922, allocations: 51.41 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.005681/0.1979, allocations: 7.164 MB / 419.2 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003881/0.2018, allocations: 2.916 MB / 422.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007539/0.2026, allocations: 23.94 kB / 422.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.204, allocations: 498.1 kB / 422.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008419/0.2049, allocations: 401.1 kB / 423 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.2052, allocations: 219.8 kB / 423.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008657/0.2061, allocations: 1.389 MB / 424.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005196/0.2066, allocations: 0.4928 MB / 425.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004193/0.207, allocations: 473.7 kB / 425.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003635/0.2074, allocations: 0.5246 MB / 426.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.119e-05/0.2075, allocations: 64 kB / 426.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.2078, allocations: 108 kB / 426.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.2079, allocations: 195 kB / 426.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003563/0.2082, allocations: 0.604 MB / 427.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009223/0.2092, allocations: 1.603 MB / 428.7 MB, free: 9.125 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2092, allocations: 4 kB / 428.7 MB, free: 9.121 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2092, allocations: 4 kB / 428.7 MB, free: 9.117 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.2092, allocations: 0 / 428.7 MB, free: 9.117 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001611/0.2108, allocations: 1.262 MB / 430 MB, free: 7.801 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.2109, allocations: 8.031 kB / 430 MB, free: 7.793 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005588/0.2114, allocations: 191.3 kB / 430.2 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000866/0.2123, allocations: 0.73 MB / 430.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.2124, allocations: 74 kB / 431 MB, free: 6.762 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.2125, allocations: 99.91 kB / 431.1 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.2138, allocations: 0.9307 MB / 432 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.2138, allocations: 4 kB / 432 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.338e-05/0.2139, allocations: 40 kB / 432 MB, free: 5.664 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.2139, allocations: 24 kB / 432.1 MB, free: 5.641 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.2149, allocations: 0.6364 MB / 432.7 MB, free: 5.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003864/0.2188, allocations: 3.954 MB / 436.6 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005661/0.2194, allocations: 432.6 kB / 437.1 MB, free: 384 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004636/0.2199, allocations: 265.4 kB / 437.3 MB, free: 116 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.2199, allocations: 12.25 kB / 437.3 MB, free: 104 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.22, allocations: 38.89 kB / 437.4 MB, free: 56 kB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.805e-06/0.22, allocations: 0 / 437.4 MB, free: 56 kB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.002623/0.2226, allocations: 1.416 MB / 438.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.2227, allocations: 81.11 kB / 438.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.2237, allocations: 0.8213 MB / 439.7 MB, free: 13.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.2238, allocations: 29.7 kB / 439.7 MB, free: 13.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004351/0.2242, allocations: 0.5526 MB / 440.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.2243, allocations: 161.7 kB / 440.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.2244, allocations: 15.94 kB / 440.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2245, allocations: 334 kB / 440.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/0.2249, allocations: 165.9 kB / 440.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005291/0.2254, allocations: 468 kB / 441.4 MB, free: 11.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008567/0.2263, allocations: 0.6585 MB / 442 MB, free: 10.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2263, allocations: 4 kB / 442.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00127/0.2276, allocations: 0.7745 MB / 442.8 MB, free: 10.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.2276, allocations: 9.25 kB / 442.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.2276, allocations: 8 kB / 442.8 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/0.2279, allocations: 89.81 kB / 442.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.2284, allocations: 159.7 kB / 443.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002265/0.2306, allocations: 2.88 MB / 446 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005553/0.2312, allocations: 39.89 kB / 446 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.2313, allocations: 32 kB / 446 MB, free: 6.699 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004401/0.2317, allocations: 269.5 kB / 446.3 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.2318, allocations: 86.97 kB / 446.4 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009309/0.2328, allocations: 0.4916 MB / 446.9 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2328, allocations: 4 kB / 446.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2328, allocations: 0 / 446.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2328, allocations: 7.938 kB / 446.9 MB, free: 5.824 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.235, allocations: 1.446 MB / 448.3 MB, free: 4.293 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.235, allocations: 8 kB / 448.3 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/0.2353, allocations: 67.91 kB / 448.4 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002232/0.2355, allocations: 73.89 kB / 448.5 MB, free: 4.141 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.2356, allocations: 8 kB / 448.5 MB, free: 4.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00213/0.2377, allocations: 2.856 MB / 451.3 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.2377, allocations: 4.156 kB / 451.3 MB, free: 1.008 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.2389, allocations: 0.7804 MB / 452.1 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.2392, allocations: 196.1 kB / 452.3 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.298e-05/0.2393, allocations: 15.94 kB / 452.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/0.2397, allocations: 39.91 kB / 452.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.359e-05/0.2398, allocations: 23.97 kB / 452.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.2398, allocations: 19.98 kB / 452.4 MB, free: 15.87 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007455/0.2406, allocations: 0.5615 MB / 453 MB, free: 15.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2406, allocations: 0 / 453 MB, free: 15.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007601/0.2414, allocations: 208 kB / 453.2 MB, free: 15.11 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0002182/0.2416, allocations: 127.1 kB / 453.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.2428, allocations: 0.6854 MB / 454 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2428, allocations: 0 / 454 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006031/0.2434, allocations: 446.9 kB / 454.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.2446, allocations: 211.2 kB / 454.6 MB, free: 13.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/0.2475, allocations: 2.224 MB / 456.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005832/0.2481, allocations: 1.009 MB / 457.9 MB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004468/0.2485, allocations: 103.2 kB / 458 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.2487, allocations: 55.44 kB / 458 MB, free: 10.12 MB / 330.7 MB Notification: Performance of SimCode: time 5.31e-07/0.2487, allocations: 4 kB / 458 MB, free: 10.12 MB / 330.7 MB Notification: Performance of Templates: time 0.01844/0.2671, allocations: 9.955 MB / 468 MB, free: 300 kB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches