Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001688/0.001688, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001942/0.001942, allocations: 167.1 kB / 23.96 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.344e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01326/0.01329, allocations: 10.25 MB / 335.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006963/0.02025, allocations: 3.101 MB / 338.4 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001501/0.02175, allocations: 43.06 kB / 338.5 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001717/0.02347, allocations: 0.6277 MB / 339.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.02539, allocations: 0.7561 MB / 339.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008526/0.02624, allocations: 402 kB / 340.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003311/0.02955, allocations: 2.339 MB / 342.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.03063, allocations: 0.6029 MB / 343.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002062/0.03269, allocations: 1.309 MB / 344.5 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009216/0.03361, allocations: 0.6581 MB / 345.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003209/0.03393, allocations: 223.9 kB / 345.4 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005113/0.03444, allocations: 247.9 kB / 345.6 MB, free: 492 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004562/0.0349, allocations: 446.3 kB / 346.1 MB, free: 44 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009075/0.03581, allocations: 0.6937 MB / 346.8 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002955/0.03876, allocations: 2.683 MB / 349.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.03877, allocations: 0 / 349.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.03877, allocations: 0 / 349.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.03879, allocations: 0 / 349.4 MB, free: 12.66 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003597/0.04239, allocations: 2.018 MB / 351.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.04243, allocations: 12.03 kB / 351.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008191/0.04325, allocations: 263.6 kB / 351.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.04515, allocations: 0.9757 MB / 352.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.04525, allocations: 115.5 kB / 352.8 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002239/0.04547, allocations: 164.2 kB / 353 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/0.0481, allocations: 1.588 MB / 354.6 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.242e-05/0.04815, allocations: 11.89 kB / 354.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.04829, allocations: 71.98 kB / 354.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.403e-05/0.04832, allocations: 36 kB / 354.7 MB, free: 7.234 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00189/0.05021, allocations: 0.9707 MB / 355.6 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007786/0.058, allocations: 5.701 MB / 361.3 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000887/0.05888, allocations: 368.9 kB / 361.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005216/0.05941, allocations: 210.1 kB / 361.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.566e-05/0.05945, allocations: 8.5 kB / 361.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005948/0.06005, allocations: 321.2 kB / 362.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.863e-06/0.06005, allocations: 0 / 362.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003473/0.06352, allocations: 1.54 MB / 363.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.06363, allocations: 162.7 kB / 363.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.06518, allocations: 1.114 MB / 365 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.81e-05/0.06522, allocations: 37.7 kB / 365.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000746/0.06597, allocations: 0.9005 MB / 366 MB, free: 11.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.06615, allocations: 210.3 kB / 366.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000294/0.06644, allocations: 214.8 kB / 366.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.06662, allocations: 357.9 kB / 366.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000489/0.06711, allocations: 268.1 kB / 367 MB, free: 10.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.06819, allocations: 0.925 MB / 367.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.06976, allocations: 1.121 MB / 369.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/0.06977, allocations: 4 kB / 369.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002089/0.07186, allocations: 1.189 MB / 370.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.199e-05/0.07191, allocations: 45.7 kB / 370.3 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.07194, allocations: 20.75 kB / 370.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/0.07218, allocations: 69.62 kB / 370.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008071/0.07299, allocations: 267.6 kB / 370.6 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.0753, allocations: 2.524 MB / 373.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00086/0.07616, allocations: 63.92 kB / 373.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-05/0.07625, allocations: 64 kB / 373.3 MB, free: 3.293 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005947/0.07684, allocations: 365.3 kB / 373.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.07699, allocations: 123.2 kB / 373.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.07806, allocations: 0.5341 MB / 374.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.07807, allocations: 7.938 kB / 374.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.07808, allocations: 4 kB / 374.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.07809, allocations: 3.984 kB / 374.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.08058, allocations: 1.544 MB / 375.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.08059, allocations: 8.406 kB / 375.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004446/0.08103, allocations: 107.9 kB / 376 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001412/0.08117, allocations: 45.64 kB / 376 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.08121, allocations: 16 kB / 376 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001987/0.08319, allocations: 2.489 MB / 378.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/0.0832, allocations: 4 kB / 378.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.08467, allocations: 0.9067 MB / 379.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003327/0.08501, allocations: 167.2 kB / 379.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.08513, allocations: 16 kB / 379.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005078/0.08564, allocations: 31.97 kB / 379.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.08577, allocations: 51.86 kB / 379.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.0858, allocations: 19.94 kB / 379.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.08699, allocations: 0.72 MB / 380.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.087, allocations: 0 / 380.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001268/0.08826, allocations: 296 kB / 380.7 MB, free: 11.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0003006/0.08856, allocations: 135.1 kB / 380.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.09014, allocations: 0.9285 MB / 381.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.09014, allocations: 1.875 kB / 381.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007103/0.09085, allocations: 458 kB / 382.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.09223, allocations: 306.8 kB / 382.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00398/0.09621, allocations: 2.404 MB / 384.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006727/0.09689, allocations: 0.5961 MB / 385.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004948/0.09738, allocations: 158.1 kB / 385.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.09756, allocations: 80.48 kB / 385.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.09756, allocations: 0 / 385.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of Templates: time 0.02881/0.1264, allocations: 14.3 MB / 400.1 MB, free: 8.172 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 5.007089257240295]