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.0008189/0.0008189, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004858/0.004858, allocations: 164.8 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8499/0.8499, allocations: 177.2 MB / 205 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.072e-06/1.072e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.479e-05/1.586e-05, allocations: 6.281 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.006969/0.006985, allocations: 10.25 MB / 336.1 MB, free: 5.133 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.01022, allocations: 3.106 MB / 339.2 MB, free: 2.016 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000423/0.01065, allocations: 39.88 kB / 339.2 MB, free: 1.977 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009066/0.01155, allocations: 0.6283 MB / 339.9 MB, free: 1.344 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007967/0.01235, allocations: 0.7559 MB / 340.6 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004085/0.01276, allocations: 411.3 kB / 341 MB, free: 180 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001509/0.01427, allocations: 2.335 MB / 343.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000578/0.01484, allocations: 0.6106 MB / 344 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008973/0.01574, allocations: 1.309 MB / 345.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005094/0.01625, allocations: 0.6503 MB / 345.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.0164, allocations: 216 kB / 346.1 MB, free: 11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002334/0.01663, allocations: 255.9 kB / 346.4 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002065/0.01684, allocations: 442.3 kB / 346.8 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004102/0.01725, allocations: 0.6937 MB / 347.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001779/0.01903, allocations: 2.687 MB / 350.2 MB, free: 6.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.01903, allocations: 0 / 350.2 MB, free: 6.926 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.01903, allocations: 3.938 kB / 350.2 MB, free: 6.922 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.01905, allocations: 0 / 350.2 MB, free: 6.922 MB / 314.7 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.00193/0.02098, allocations: 2.014 MB / 352.2 MB, free: 4.859 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.02101, allocations: 12.03 kB / 352.2 MB, free: 4.848 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003864/0.0214, allocations: 267.5 kB / 352.5 MB, free: 4.586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.0224, allocations: 0.9718 MB / 353.5 MB, free: 3.582 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.096e-05/0.02246, allocations: 115.5 kB / 353.6 MB, free: 3.469 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.02259, allocations: 156.3 kB / 353.7 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.02405, allocations: 1.6 MB / 355.3 MB, free: 1.617 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.526e-05/0.02409, allocations: 15.89 kB / 355.3 MB, free: 1.602 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.641e-05/0.02416, allocations: 64 kB / 355.4 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.02418, allocations: 36 kB / 355.4 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.02528, allocations: 0.9784 MB / 356.4 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004332/0.02962, allocations: 5.689 MB / 362.1 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.0301, allocations: 376.8 kB / 362.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.03035, allocations: 211.1 kB / 362.7 MB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.03037, allocations: 8.484 kB / 362.7 MB, free: 9.906 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003092/0.03068, allocations: 317.2 kB / 363 MB, free: 9.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 1.653e-06/0.03068, allocations: 0 / 363 MB, free: 9.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.00196/0.03264, allocations: 1.544 MB / 364.6 MB, free: 7.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.0327, allocations: 166.7 kB / 364.7 MB, free: 7.781 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008481/0.03355, allocations: 1.114 MB / 365.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.03358, allocations: 41.7 kB / 365.9 MB, free: 6.605 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003779/0.03396, allocations: 0.8927 MB / 366.8 MB, free: 5.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.68e-05/0.03405, allocations: 214.3 kB / 367 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.03421, allocations: 218.8 kB / 367.2 MB, free: 5.27 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.735e-05/0.0343, allocations: 349.9 kB / 367.5 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/0.03457, allocations: 256.2 kB / 367.8 MB, free: 4.668 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005244/0.03509, allocations: 0.9328 MB / 368.7 MB, free: 3.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007919/0.03588, allocations: 1.121 MB / 369.8 MB, free: 2.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.03589, allocations: 4 kB / 369.8 MB, free: 2.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00131/0.0372, allocations: 1.197 MB / 371 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.03723, allocations: 41.7 kB / 371.1 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.03724, allocations: 20 kB / 371.1 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001383/0.03738, allocations: 61.7 kB / 371.2 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.03778, allocations: 267.5 kB / 371.4 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.03886, allocations: 2.528 MB / 373.9 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000371/0.03923, allocations: 68.25 kB / 374 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.03927, allocations: 63.98 kB / 374.1 MB, free: 13.56 MB / 346.7 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.0003146/0.03959, allocations: 365.2 kB / 374.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.479e-05/0.03967, allocations: 127.2 kB / 374.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005689/0.04024, allocations: 0.5341 MB / 375.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.04025, allocations: 7.938 kB / 375.1 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.04025, allocations: 4 kB / 375.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.04025, allocations: 7.922 kB / 375.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001401/0.04166, allocations: 1.529 MB / 376.6 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.04166, allocations: 11.92 kB / 376.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.04188, allocations: 103.8 kB / 376.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.992e-05/0.04196, allocations: 49.69 kB / 376.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.04198, allocations: 16 kB / 376.8 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.04324, allocations: 2.489 MB / 379.3 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.04324, allocations: 4 kB / 379.3 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007683/0.04401, allocations: 0.9069 MB / 380.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.0442, allocations: 155.2 kB / 380.4 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.467e-05/0.04426, allocations: 19.98 kB / 380.4 MB, free: 6.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.04449, allocations: 27.98 kB / 380.4 MB, free: 6.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.042e-05/0.04456, allocations: 63.78 kB / 380.5 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.04458, allocations: 16 kB / 380.5 MB, free: 6.742 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005782/0.04516, allocations: 0.7161 MB / 381.2 MB, free: 6.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04516, allocations: 0 / 381.2 MB, free: 6.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005539/0.04571, allocations: 300 kB / 381.5 MB, free: 5.727 MB / 346.7 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.0001699/0.04588, allocations: 135 kB / 381.6 MB, free: 5.586 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000834/0.04672, allocations: 0.9301 MB / 382.6 MB, free: 4.613 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.04672, allocations: 8.188 kB / 382.6 MB, free: 4.605 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003334/0.04705, allocations: 449 kB / 383 MB, free: 4.141 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007368/0.04779, allocations: 306.8 kB / 383.3 MB, free: 3.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.05028, allocations: 2.438 MB / 385.7 MB, free: 1.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.05065, allocations: 0.5961 MB / 386.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.05077, allocations: 92.48 kB / 386.4 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of SimCode: time 8.72e-07/0.05077, allocations: 0 / 386.4 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of Templates: time 0.02089/0.07166, allocations: 31.63 MB / 418.1 MB, free: 0.9961 MB / 378.7 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.85694236587733]