Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 84.95 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 158.2 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 177 MB / 204.1 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.259e-05/2.416e-05, allocations: 6.219 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009314/0.009338, allocations: 6.358 MB / 331.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005077/0.01442, allocations: 2.222 MB / 333.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.01561, allocations: 19.97 kB / 333.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.01739, allocations: 493.8 kB / 334.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.01887, allocations: 421.5 kB / 334.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007521/0.01962, allocations: 213.2 kB / 334.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001916/0.02154, allocations: 1.254 MB / 336 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007044/0.02224, allocations: 314.5 kB / 336.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001449/0.02369, allocations: 0.7037 MB / 337 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007207/0.02441, allocations: 360 kB / 337.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001849/0.02459, allocations: 116.8 kB / 337.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004028/0.025, allocations: 151.6 kB / 337.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002344/0.02523, allocations: 229.8 kB / 337.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006157/0.02585, allocations: 380.9 kB / 338.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001832/0.02768, allocations: 1.433 MB / 339.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.02768, allocations: 4 kB / 339.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.02769, allocations: 0 / 339.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.851e-05/0.02772, allocations: 0 / 339.6 MB, free: 6.406 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.002754/0.03048, allocations: 1.198 MB / 340.8 MB, free: 5.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.03052, allocations: 11.98 kB / 340.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005681/0.03109, allocations: 156.2 kB / 341 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.03232, allocations: 0.5758 MB / 341.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.896e-05/0.03238, allocations: 58.38 kB / 341.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.03252, allocations: 84.33 kB / 341.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.03411, allocations: 0.834 MB / 342.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.678e-05/0.03417, allocations: 4.188 kB / 342.6 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.744e-05/0.03426, allocations: 35.94 kB / 342.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.03428, allocations: 20 kB / 342.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.03547, allocations: 0.5114 MB / 343.1 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004551/0.04002, allocations: 2.927 MB / 346 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.04057, allocations: 217.4 kB / 346.3 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.04084, allocations: 108.7 kB / 346.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.04087, allocations: 4 kB / 346.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.0409, allocations: 38.56 kB / 346.4 MB, free: 15.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.954e-06/0.0409, allocations: 0 / 346.4 MB, free: 15.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.00222/0.04312, allocations: 0.8847 MB / 347.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.04319, allocations: 89.27 kB / 347.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009507/0.04414, allocations: 0.6836 MB / 348.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.04418, allocations: 29.7 kB / 348.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004193/0.0446, allocations: 0.5188 MB / 348.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.883e-05/0.04469, allocations: 111.1 kB / 348.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.04486, allocations: 114.2 kB / 348.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.04506, allocations: 366.8 kB / 349.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.04536, allocations: 129.2 kB / 349.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005609/0.04592, allocations: 443.9 kB / 349.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009095/0.04683, allocations: 0.5755 MB / 350.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.04684, allocations: 4 kB / 350.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001165/0.048, allocations: 0.6035 MB / 350.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.04802, allocations: 11.94 kB / 350.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.04804, allocations: 11.98 kB / 351 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.04821, allocations: 36.84 kB / 351 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.04866, allocations: 135.8 kB / 351.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.04986, allocations: 1.272 MB / 352.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.0503, allocations: 31.94 kB / 352.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.05034, allocations: 32 kB / 352.5 MB, free: 8.793 MB / 318.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.0003424/0.05069, allocations: 237.5 kB / 352.7 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.0508, allocations: 71.73 kB / 352.8 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007085/0.05151, allocations: 317 kB / 353.1 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.05151, allocations: 4 kB / 353.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.05152, allocations: 0 / 353.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.05152, allocations: 0 / 353.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.0531, allocations: 0.8989 MB / 354 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.05311, allocations: 7.938 kB / 354 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/0.05339, allocations: 59.91 kB / 354 MB, free: 7.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.253e-05/0.05348, allocations: 20.84 kB / 354.1 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.0535, allocations: 4 kB / 354.1 MB, free: 7.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.05457, allocations: 1.249 MB / 355.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.05457, allocations: 3.938 kB / 355.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009955/0.05557, allocations: 0.5531 MB / 355.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001922/0.05576, allocations: 91.73 kB / 356 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.58e-05/0.05584, allocations: 11.98 kB / 356 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.05618, allocations: 19.92 kB / 356 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.548e-05/0.05625, allocations: 23.97 kB / 356 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.05628, allocations: 19.92 kB / 356 MB, free: 4.977 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006492/0.05693, allocations: 455.1 kB / 356.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.05693, allocations: 0 / 356.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006704/0.0576, allocations: 156 kB / 356.6 MB, free: 4.387 MB / 318.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.0002291/0.05783, allocations: 135.1 kB / 356.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009534/0.05878, allocations: 456.6 kB / 357.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.05878, allocations: 0 / 357.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.0592, allocations: 233.9 kB / 357.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009383/0.06014, allocations: 172.3 kB / 357.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.06252, allocations: 1.327 MB / 358.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.06291, allocations: 348.4 kB / 359.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002859/0.06319, allocations: 85.47 kB / 359.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.0633, allocations: 48.5 kB / 359.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.06331, allocations: 0 / 359.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of Templates: time 0.01717/0.08048, allocations: 7.923 MB / 367.3 MB, free: 9.723 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.826941855251789]