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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007747/0.0007747, allocations: 93.39 kB / 17.31 MB, free: 6.535 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.0008273/0.0008273, allocations: 179 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.112/1.112, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002142/0.0002142, allocations: 8.625 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07005/0.07028, allocations: 50.41 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006629/0.07692, allocations: 7.692 MB / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003528/0.08046, allocations: 2.646 MB / 362.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006008/0.08107, allocations: 27.88 kB / 362.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.08221, allocations: 498.1 kB / 363.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009758/0.0832, allocations: 417.1 kB / 363.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.08363, allocations: 227.7 kB / 364 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001276/0.08492, allocations: 1.427 MB / 365.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006081/0.08553, allocations: 0.4967 MB / 365.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005433/0.08608, allocations: 489.6 kB / 366.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005254/0.08662, allocations: 0.5247 MB / 366.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.031e-05/0.08672, allocations: 64 kB / 367 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002091/0.08693, allocations: 104 kB / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.08707, allocations: 206.9 kB / 367.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004373/0.08752, allocations: 0.6079 MB / 367.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009744/0.0885, allocations: 1.375 MB / 369.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.08851, allocations: 0 / 369.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.08851, allocations: 0 / 369.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.08853, allocations: 0 / 369.3 MB, free: 2.848 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001696/0.09023, allocations: 1.281 MB / 370.5 MB, free: 1.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.753e-05/0.09027, allocations: 12.03 kB / 370.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005488/0.09082, allocations: 191.3 kB / 370.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008965/0.09173, allocations: 0.7463 MB / 371.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.12e-05/0.09179, allocations: 74 kB / 371.6 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.09191, allocations: 107.9 kB / 371.7 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1132/0.2051, allocations: 0.9428 MB / 372.6 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/0.2052, allocations: 3.406 kB / 372.6 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.85e-05/0.2053, allocations: 40.28 kB / 372.6 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.2053, allocations: 29.25 kB / 372.7 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.2064, allocations: 0.6628 MB / 373.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003963/0.2104, allocations: 3.97 MB / 377.3 MB, free: 21.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.2109, allocations: 454.2 kB / 377.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004836/0.2114, allocations: 272.9 kB / 378 MB, free: 21.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.2115, allocations: 6.266 kB / 378 MB, free: 21.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/0.2115, allocations: 36.78 kB / 378.1 MB, free: 21.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.603e-06/0.2115, allocations: 4.984 kB / 378.1 MB, free: 21.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002273/0.2138, allocations: 1.58 MB / 379.6 MB, free: 20.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.2138, allocations: 82.61 kB / 379.7 MB, free: 20.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00086/0.2147, allocations: 0.8426 MB / 380.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.2147, allocations: 35.89 kB / 380.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.215, allocations: 0.5653 MB / 381.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.518e-05/0.215, allocations: 160.3 kB / 381.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.203e-05/0.2151, allocations: 58.64 kB / 381.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.712e-05/0.2152, allocations: 337.5 kB / 381.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.2155, allocations: 186.5 kB / 381.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003895/0.2159, allocations: 474.3 kB / 382.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000699/0.2166, allocations: 0.694 MB / 383.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2166, allocations: 3.031 kB / 383.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001071/0.2177, allocations: 0.8099 MB / 383.9 MB, free: 17.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2177, allocations: 8.188 kB / 383.9 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.2177, allocations: 9.5 kB / 383.9 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.2179, allocations: 81.81 kB / 384 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004277/0.2184, allocations: 162.5 kB / 384.1 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.2198, allocations: 2.879 MB / 387 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004334/0.2202, allocations: 37.52 kB / 387 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.2203, allocations: 32.52 kB / 387.1 MB, free: 14.79 MB / 302.1 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.0002464/0.2205, allocations: 270.4 kB / 387.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.509e-05/0.2206, allocations: 90.91 kB / 387.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008195/0.2214, allocations: 0.5127 MB / 387.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2214, allocations: 5 kB / 387.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.2215, allocations: 2.844 kB / 387.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2215, allocations: 3.281 kB / 387.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001742/0.2232, allocations: 1.489 MB / 389.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2232, allocations: 8.656 kB / 389.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.2235, allocations: 78.17 kB / 389.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001582/0.2237, allocations: 69.22 kB / 389.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.2237, allocations: 15.7 kB / 389.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/0.225, allocations: 2.851 MB / 392.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.225, allocations: 14.09 kB / 392.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.226, allocations: 0.8188 MB / 393.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.2262, allocations: 196.8 kB / 393.5 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.633e-05/0.2263, allocations: 13.88 kB / 393.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003821/0.2267, allocations: 35.23 kB / 393.5 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.781e-05/0.2268, allocations: 38.08 kB / 393.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.2268, allocations: 15.55 kB / 393.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005969/0.2274, allocations: 0.5715 MB / 394.1 MB, free: 9.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2274, allocations: 0 / 394.1 MB, free: 9.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006768/0.2281, allocations: 209.7 kB / 394.4 MB, free: 9.656 MB / 302.1 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.0001409/0.2282, allocations: 138.7 kB / 394.5 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009106/0.2292, allocations: 0.7227 MB / 395.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2292, allocations: 4.906 kB / 395.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.2297, allocations: 467.2 kB / 395.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.2308, allocations: 210.1 kB / 395.9 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.2328, allocations: 2.281 MB / 398.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.2332, allocations: 1.016 MB / 399.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.2334, allocations: 59.34 kB / 399.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2334, allocations: 3.984 kB / 399.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of Templates: time 0.01877/0.2522, allocations: 21.12 MB / 420.4 MB, free: 3.207 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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