Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,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_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 108.2 kB / 17.74 MB, free: 5.359 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.001141/0.001141, allocations: 183.1 kB / 18.67 MB, free: 4.441 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009769/0.0009769, allocations: 51.91 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2362, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008636/0.2448, allocations: 8.068 MB / 409.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004377/0.2493, allocations: 2.649 MB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008558/0.2501, allocations: 27.88 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.2517, allocations: 0.5441 MB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.253, allocations: 464.3 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004926/0.2535, allocations: 251.7 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001431/0.2549, allocations: 1.475 MB / 414.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007765/0.2557, allocations: 0.5806 MB / 415.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005888/0.2563, allocations: 0.5525 MB / 416 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006007/0.2569, allocations: 0.595 MB / 416.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.2571, allocations: 144 kB / 416.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003123/0.2574, allocations: 180 kB / 416.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001855/0.2576, allocations: 282.9 kB / 417.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005123/0.2581, allocations: 0.6609 MB / 417.9 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.2596, allocations: 1.721 MB / 419.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2596, allocations: 0 / 419.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2596, allocations: 0 / 419.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.2597, allocations: 0 / 419.6 MB, free: 6.605 MB / 334.1 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.002143/0.2618, allocations: 1.449 MB / 421 MB, free: 5.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.2619, allocations: 11.89 kB / 421 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006431/0.2625, allocations: 191.3 kB / 421.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.2636, allocations: 0.7495 MB / 422 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/0.2637, allocations: 70 kB / 422 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.2638, allocations: 103.8 kB / 422.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.2653, allocations: 0.9308 MB / 423.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.2654, allocations: 7.938 kB / 423.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.76e-05/0.2655, allocations: 40 kB / 423.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.2655, allocations: 24 kB / 423.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.2667, allocations: 0.6325 MB / 423.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004757/0.2714, allocations: 3.887 MB / 427.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006662/0.2721, allocations: 446.3 kB / 428.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005748/0.2727, allocations: 273.3 kB / 428.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.2728, allocations: 4.328 kB / 428.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.2728, allocations: 38.89 kB / 428.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.234e-06/0.2728, allocations: 4 kB / 428.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002613/0.2754, allocations: 1.394 MB / 429.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.2755, allocations: 89.11 kB / 429.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.2765, allocations: 0.8213 MB / 430.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.2765, allocations: 33.7 kB / 430.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003695/0.2769, allocations: 0.5565 MB / 431.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.277, allocations: 161.7 kB / 431.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.2772, allocations: 130.6 kB / 431.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2773, allocations: 330 kB / 431.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.2776, allocations: 165.9 kB / 432.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/0.2782, allocations: 471.9 kB / 432.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000913/0.2791, allocations: 0.6546 MB / 433.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.2791, allocations: 4 kB / 433.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001251/0.2803, allocations: 0.7666 MB / 434 MB, free: 7.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.2804, allocations: 8 kB / 434 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.2804, allocations: 12 kB / 434 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002495/0.2807, allocations: 89.89 kB / 434.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004804/0.2811, allocations: 155.7 kB / 434.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.2834, allocations: 3.138 MB / 437.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005083/0.284, allocations: 36.17 kB / 437.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.284, allocations: 36 kB / 437.4 MB, free: 3.668 MB / 350.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 (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.0003549/0.2844, allocations: 266 kB / 437.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.2845, allocations: 82.97 kB / 437.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008925/0.2854, allocations: 499 kB / 438.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.2854, allocations: 8 kB / 438.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2854, allocations: 0 / 438.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2854, allocations: 3.984 kB / 438.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.2874, allocations: 1.436 MB / 439.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.2874, allocations: 7.984 kB / 439.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.2877, allocations: 67.91 kB / 439.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000187/0.2879, allocations: 77.83 kB / 439.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.288, allocations: 12 kB / 439.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00219/0.2901, allocations: 3.127 MB / 443 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.2902, allocations: 4.031 kB / 443 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.2913, allocations: 0.7701 MB / 443.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/0.2916, allocations: 196.1 kB / 444 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.748e-05/0.2917, allocations: 11.94 kB / 444 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004147/0.2921, allocations: 31.97 kB / 444 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.041e-05/0.2922, allocations: 31.95 kB / 444 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.2922, allocations: 16 kB / 444 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007062/0.293, allocations: 0.5654 MB / 444.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.293, allocations: 0 / 444.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007811/0.2937, allocations: 204 kB / 444.8 MB, free: 11.83 MB / 366.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 (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.0002018/0.294, allocations: 123.2 kB / 444.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.2951, allocations: 0.677 MB / 445.6 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.2951, allocations: 4 kB / 445.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006126/0.2957, allocations: 447.2 kB / 446.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.2967, allocations: 228.4 kB / 446.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.2994, allocations: 1.742 MB / 448 MB, free: 8.516 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005432/0.2999, allocations: 1.001 MB / 449 MB, free: 7.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.3001, allocations: 63.42 kB / 449.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3001, allocations: 0 / 449.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of Templates: time 0.02189/0.322, allocations: 20.97 MB / 470 MB, free: 2.504 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches