Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009545/0.0009545, allocations: 84.39 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 170.6 kB / 25.61 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9236/0.9236, allocations: 158.6 MB / 187.5 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.841e-05, allocations: 2.312 kB / 251.5 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009473/0.009491, allocations: 11.69 MB / 263.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005613/0.0151, allocations: 3.243 MB / 266.4 MB, free: 8.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.01654, allocations: 39.88 kB / 266.5 MB, free: 8.184 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.01815, allocations: 0.6516 MB / 267.1 MB, free: 7.527 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001703/0.01985, allocations: 0.8295 MB / 267.9 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007424/0.02059, allocations: 403.5 kB / 268.3 MB, free: 6.297 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002744/0.02334, allocations: 2.501 MB / 270.8 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.02457, allocations: 0.6109 MB / 271.4 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.02698, allocations: 1.415 MB / 272.9 MB, free: 1.707 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.02821, allocations: 0.7634 MB / 273.6 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004274/0.02864, allocations: 228 kB / 273.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005247/0.02917, allocations: 259.9 kB / 274.1 MB, free: 476 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003445/0.02951, allocations: 470.2 kB / 274.6 MB, free: 4 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009606/0.03047, allocations: 0.7326 MB / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002245/0.03272, allocations: 1.479 MB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.03272, allocations: 0 / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.03272, allocations: 7.938 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.566e-05/0.03277, allocations: 4 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003539/0.03631, allocations: 2.246 MB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.03636, allocations: 19.95 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000928/0.03728, allocations: 415.5 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.03883, allocations: 1.011 MB / 280.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-05/0.03891, allocations: 111.5 kB / 280.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.0391, allocations: 168.2 kB / 280.7 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.04059, allocations: 1.183 MB / 281.9 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.46e-05/0.04063, allocations: 7.953 kB / 281.9 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.557e-05/0.04073, allocations: 64 kB / 282 MB, free: 8.363 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-05/0.04076, allocations: 40 kB / 282 MB, free: 8.324 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007598/0.04152, allocations: 454.6 kB / 282.5 MB, free: 7.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006414/0.04794, allocations: 5.954 MB / 288.4 MB, free: 1.617 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007963/0.04873, allocations: 383.9 kB / 288.8 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000434/0.04917, allocations: 269.4 kB / 289.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.206e-05/0.04921, allocations: 24.64 kB / 289.1 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.04924, allocations: 45.98 kB / 289.1 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 3.146e-06/0.04924, allocations: 0 / 289.1 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002471/0.05171, allocations: 1.337 MB / 290.5 MB, free: 15.51 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.05177, allocations: 111.5 kB / 290.6 MB, free: 15.38 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.05307, allocations: 1.094 MB / 291.7 MB, free: 14.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.05311, allocations: 41.7 kB / 291.7 MB, free: 14.22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006066/0.05372, allocations: 0.9586 MB / 292.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.05389, allocations: 273.7 kB / 292.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.05413, allocations: 216.4 kB / 293.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.05432, allocations: 0.5237 MB / 293.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.05451, allocations: 114.5 kB / 293.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005516/0.05506, allocations: 0.814 MB / 294.6 MB, free: 11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008425/0.0559, allocations: 0.9715 MB / 295.6 MB, free: 9.742 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.05591, allocations: 4 kB / 295.6 MB, free: 9.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001285/0.05719, allocations: 0.9445 MB / 296.5 MB, free: 8.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.05722, allocations: 12 kB / 296.5 MB, free: 8.762 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.05723, allocations: 16 kB / 296.5 MB, free: 8.746 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003931/0.05763, allocations: 139.5 kB / 296.7 MB, free: 8.598 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.05821, allocations: 255.6 kB / 296.9 MB, free: 8.348 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004775/0.06298, allocations: 5.54 MB / 302.5 MB, free: 2.469 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008363/0.06382, allocations: 55.94 kB / 302.5 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.06387, allocations: 40 kB / 302.6 MB, free: 2.375 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003793/0.06425, allocations: 244.2 kB / 302.8 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.06444, allocations: 151.2 kB / 303 MB, free: 1.977 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008231/0.06526, allocations: 0.5475 MB / 303.5 MB, free: 1.398 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.06527, allocations: 8 kB / 303.5 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.06527, allocations: 0 / 303.5 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.06528, allocations: 7.984 kB / 303.5 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/0.06744, allocations: 1.584 MB / 305.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.06745, allocations: 8 kB / 305.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003679/0.06782, allocations: 127.8 kB / 305.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/0.06822, allocations: 163.2 kB / 305.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.06826, allocations: 19.94 kB / 305.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002737/0.07099, allocations: 5.611 MB / 311 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.071, allocations: 4 kB / 311 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.07218, allocations: 0.9684 MB / 312 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003448/0.07252, allocations: 195 kB / 312.2 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.92e-05/0.07262, allocations: 16 kB / 312.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003648/0.07299, allocations: 39.97 kB / 312.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.07309, allocations: 64.28 kB / 312.3 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.07312, allocations: 19.98 kB / 312.3 MB, free: 8.023 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005714/0.07369, allocations: 0.6119 MB / 312.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.07369, allocations: 0 / 312.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001065/0.07476, allocations: 324 kB / 313.3 MB, free: 7.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002015/0.07496, allocations: 139 kB / 313.4 MB, free: 6.941 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009987/0.07596, allocations: 0.9949 MB / 314.4 MB, free: 5.895 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.07596, allocations: 4 kB / 314.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.07655, allocations: 0.7394 MB / 315.1 MB, free: 5.094 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.07771, allocations: 365.7 kB / 315.5 MB, free: 4.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/0.08166, allocations: 2.678 MB / 318.2 MB, free: 1.957 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.08187, allocations: 252.9 kB / 318.4 MB, free: 1.688 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004487/0.08232, allocations: 162.7 kB / 318.6 MB, free: 1.523 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006296/0.08295, allocations: 398 kB / 319 MB, free: 1.133 MB / 298.7 MB Notification: Performance of SimCode: time 8.11e-07/0.08295, allocations: 0 / 319 MB, free: 1.133 MB / 298.7 MB Notification: Performance of Templates: time 0.02714/0.1101, allocations: 18.75 MB / 337.7 MB, free: 14.39 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.359194877091795]