Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 240.9 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009834/0.0009834, allocations: 118.6 kB / 291.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009842/0.0009843, allocations: 43.94 kB / 350 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1942, allocations: 49.44 MB / 399.5 MB, free: 33.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006525/0.2008, allocations: 8.173 MB / 407.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003742/0.2046, allocations: 2.675 MB / 410.3 MB, free: 22.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007863/0.2054, allocations: 23.94 kB / 410.3 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.2066, allocations: 0.4902 MB / 410.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008562/0.2075, allocations: 417.1 kB / 411.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.2079, allocations: 223.8 kB / 411.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008856/0.2088, allocations: 1.453 MB / 412.9 MB, free: 19.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005406/0.2093, allocations: 0.4929 MB / 413.4 MB, free: 19.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/0.2098, allocations: 0.5133 MB / 413.9 MB, free: 18.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004108/0.2102, allocations: 0.5792 MB / 414.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.2103, allocations: 88 kB / 414.6 MB, free: 18.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.2106, allocations: 124 kB / 414.7 MB, free: 18.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.2107, allocations: 234.9 kB / 414.9 MB, free: 17.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.2111, allocations: 0.614 MB / 415.6 MB, free: 17.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009322/0.212, allocations: 1.69 MB / 417.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.212, allocations: 7.984 kB / 417.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.212, allocations: 0 / 417.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.2121, allocations: 0 / 417.3 MB, free: 15.48 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002015/0.2141, allocations: 1.484 MB / 418.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.2141, allocations: 8.031 kB / 418.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005488/0.2147, allocations: 187.3 kB / 418.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008465/0.2155, allocations: 0.7464 MB / 419.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.59e-05/0.2156, allocations: 70 kB / 419.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.2157, allocations: 107.9 kB / 419.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.2169, allocations: 0.9346 MB / 420.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.217, allocations: 11.98 kB / 420.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.217, allocations: 36 kB / 420.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.2171, allocations: 28 kB / 420.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.2181, allocations: 0.6481 MB / 421.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/0.2218, allocations: 3.965 MB / 425.5 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005644/0.2224, allocations: 439.9 kB / 425.9 MB, free: 6.453 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004916/0.2229, allocations: 268.7 kB / 426.2 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.223, allocations: 8 kB / 426.2 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.223, allocations: 38.5 kB / 426.2 MB, free: 6.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.976e-06/0.223, allocations: 4 kB / 426.2 MB, free: 6.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002364/0.2254, allocations: 1.543 MB / 427.8 MB, free: 4.488 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.2254, allocations: 81.11 kB / 427.8 MB, free: 4.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008105/0.2262, allocations: 0.841 MB / 428.7 MB, free: 3.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.2263, allocations: 29.7 kB / 428.7 MB, free: 3.504 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.2265, allocations: 0.5681 MB / 429.3 MB, free: 2.926 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.807e-05/0.2266, allocations: 157.8 kB / 429.4 MB, free: 2.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.2267, allocations: 142.5 kB / 429.6 MB, free: 2.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.2268, allocations: 337.9 kB / 429.9 MB, free: 2.285 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.2271, allocations: 169.9 kB / 430.1 MB, free: 2.121 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003868/0.2275, allocations: 467.6 kB / 430.5 MB, free: 1.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007079/0.2282, allocations: 0.6836 MB / 431.2 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2282, allocations: 4 kB / 431.2 MB, free: 0.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001168/0.2294, allocations: 0.7751 MB / 432 MB, free: 15.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.2294, allocations: 8 kB / 432 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.2294, allocations: 12 kB / 432 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002578/0.2297, allocations: 89.86 kB / 432.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004951/0.2302, allocations: 163.6 kB / 432.2 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002088/0.2323, allocations: 2.869 MB / 435.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004906/0.2328, allocations: 43.83 kB / 435.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.2329, allocations: 36.05 kB / 435.2 MB, free: 12.43 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 (85): * Single equations (assignments): 83 * 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.0003483/0.2332, allocations: 269.5 kB / 435.5 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.2333, allocations: 90.91 kB / 435.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000941/0.2343, allocations: 0.4953 MB / 436 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2343, allocations: 4 kB / 436 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2343, allocations: 7.984 kB / 436 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2343, allocations: 0 / 436 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.2364, allocations: 1.474 MB / 437.5 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.2364, allocations: 7.938 kB / 437.5 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.2367, allocations: 75.89 kB / 437.6 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.2369, allocations: 69.89 kB / 437.7 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.2369, allocations: 16 kB / 437.7 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.239, allocations: 2.849 MB / 440.5 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.239, allocations: 7.984 kB / 440.5 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007773/0.2468, allocations: 6.685 MB / 447.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002547/0.2471, allocations: 196 kB / 447.4 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.617e-05/0.2472, allocations: 12 kB / 447.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.2476, allocations: 27.97 kB / 447.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.639e-05/0.2477, allocations: 31.95 kB / 447.5 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.817e-05/0.2477, allocations: 23.94 kB / 447.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007328/0.2485, allocations: 0.5693 MB / 448.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2485, allocations: 0 / 448.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001129/0.2496, allocations: 300 kB / 448.4 MB, free: 14.38 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 (39): * Single equations (assignments): 37 * 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.0002264/0.2498, allocations: 141.1 kB / 448.5 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.251, allocations: 0.698 MB / 449.2 MB, free: 13.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.251, allocations: 0 / 449.2 MB, free: 13.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006294/0.2517, allocations: 454.2 kB / 449.7 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.2528, allocations: 219.4 kB / 449.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.2561, allocations: 2.727 MB / 452.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005453/0.2566, allocations: 1.017 MB / 453.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004613/0.2571, allocations: 111.3 kB / 453.7 MB, free: 8.863 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.2573, allocations: 63.42 kB / 453.8 MB, free: 8.801 MB / 330.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2573, allocations: 3.938 kB / 453.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of Templates: time 0.01988/0.2771, allocations: 11.38 MB / 465.2 MB, free: 13.54 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches