Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001619, allocations: 110.8 kB / 17.29 MB, free: 6.215 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.001764/0.001765, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.335/1.335, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 46.44 kB / 300.8 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0908/0.09198, allocations: 49.44 MB / 350.2 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008493/0.1005, allocations: 7.117 MB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.1044, allocations: 2.325 MB / 359.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008712/0.1053, allocations: 19.94 kB / 359.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.1069, allocations: 445.7 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001257/0.1082, allocations: 333.7 kB / 360.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.1088, allocations: 175.9 kB / 360.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001611/0.1104, allocations: 1.195 MB / 361.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008125/0.1112, allocations: 0.5075 MB / 362.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007919/0.112, allocations: 470.1 kB / 362.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008341/0.1129, allocations: 0.49 MB / 363.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002588/0.1131, allocations: 112 kB / 363.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004889/0.1136, allocations: 148 kB / 363.5 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002561/0.1139, allocations: 235.1 kB / 363.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008876/0.1148, allocations: 0.5443 MB / 364.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.1163, allocations: 1.165 MB / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1163, allocations: 0 / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1163, allocations: 0 / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.578e-05/0.1164, allocations: 4 kB / 365.5 MB, free: 5.434 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002818/0.1192, allocations: 1.258 MB / 366.7 MB, free: 4.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1193, allocations: 11.89 kB / 366.7 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005029/0.1198, allocations: 143.5 kB / 366.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009241/0.1207, allocations: 0.6416 MB / 367.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.1208, allocations: 58.38 kB / 367.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.1209, allocations: 80.28 kB / 367.7 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.1223, allocations: 0.7832 MB / 368.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.1223, allocations: 4 kB / 368.5 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.269e-05/0.1224, allocations: 32 kB / 368.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.1224, allocations: 24 kB / 368.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009821/0.1234, allocations: 0.5153 MB / 369 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1564/0.2798, allocations: 3.385 MB / 372.4 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005034/0.2803, allocations: 227.4 kB / 372.6 MB, free: 23.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.2806, allocations: 114.9 kB / 372.7 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.2806, allocations: 2.844 kB / 372.7 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.2807, allocations: 37.97 kB / 372.8 MB, free: 23.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.966e-06/0.2807, allocations: 3.953 kB / 372.8 MB, free: 23.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001984/0.2827, allocations: 1.039 MB / 373.8 MB, free: 23.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.2827, allocations: 84.34 kB / 373.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009484/0.2837, allocations: 0.7405 MB / 374.6 MB, free: 22.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.2837, allocations: 34.58 kB / 374.7 MB, free: 22.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/0.284, allocations: 0.4901 MB / 375.2 MB, free: 22.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.2841, allocations: 101.3 kB / 375.3 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.2842, allocations: 115.3 kB / 375.4 MB, free: 22.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.735e-05/0.2843, allocations: 377 kB / 375.8 MB, free: 21.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/0.2846, allocations: 131.9 kB / 375.9 MB, free: 21.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.2849, allocations: 420.8 kB / 376.3 MB, free: 21.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005912/0.2855, allocations: 0.5702 MB / 376.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.2855, allocations: 3.625 kB / 376.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009278/0.2865, allocations: 0.6051 MB / 377.5 MB, free: 20.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.2865, allocations: 10.14 kB / 377.5 MB, free: 20.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.2865, allocations: 9.625 kB / 377.5 MB, free: 20.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001491/0.2867, allocations: 34.08 kB / 377.5 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004145/0.2871, allocations: 142.8 kB / 377.7 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007438/0.2879, allocations: 1.376 MB / 379 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.2884, allocations: 38.88 kB / 379.1 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.2884, allocations: 30.12 kB / 379.1 MB, free: 19.24 MB / 302.1 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.0003346/0.2888, allocations: 240.8 kB / 379.3 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.722e-05/0.2889, allocations: 69.97 kB / 379.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006264/0.2895, allocations: 330.8 kB / 379.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.2895, allocations: 6.5 kB / 379.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2895, allocations: 3.062 kB / 379.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.2895, allocations: 5.344 kB / 379.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/0.2911, allocations: 1.095 MB / 380.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.2912, allocations: 2.875 kB / 380.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002607/0.2914, allocations: 66.39 kB / 380.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.539e-05/0.2915, allocations: 23.34 kB / 380.9 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.2915, allocations: 7.688 kB / 380.9 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006507/0.2922, allocations: 1.371 MB / 382.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2922, allocations: 3.219 kB / 382.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008279/0.293, allocations: 0.5571 MB / 382.9 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.2933, allocations: 179.2 kB / 383 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.587e-05/0.2934, allocations: 8.547 kB / 383.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/0.2937, allocations: 19.44 kB / 383.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.003e-05/0.2938, allocations: 26.16 kB / 383.1 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.2938, allocations: 15.53 kB / 383.1 MB, free: 16.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006443/0.2945, allocations: 0.5002 MB / 383.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2945, allocations: 1.219 kB / 383.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006947/0.2952, allocations: 164.4 kB / 383.8 MB, free: 15.96 MB / 302.1 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.0001744/0.2954, allocations: 130.7 kB / 383.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008671/0.2962, allocations: 473.6 kB / 384.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2962, allocations: 0 / 384.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003162/0.2966, allocations: 237.3 kB / 384.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009702/0.2976, allocations: 180.2 kB / 384.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.2999, allocations: 1.794 MB / 386.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.3004, allocations: 0.9406 MB / 387.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.3005, allocations: 51.45 kB / 387.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3005, allocations: 0 / 387.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01677/0.3173, allocations: 13.39 MB / 401 MB, free: 6.574 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches