Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.000883/0.000883, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003696/0.003696, allocations: 160.8 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.8348/0.8348, allocations: 177 MB / 204.9 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/2.003e-05, allocations: 2.281 kB / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.007331/0.007351, allocations: 10.25 MB / 336 MB, free: 5.055 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004171/0.01152, allocations: 3.098 MB / 339.1 MB, free: 1.945 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006643/0.01219, allocations: 43.81 kB / 339.2 MB, free: 1.902 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.01321, allocations: 0.6283 MB / 339.8 MB, free: 1.266 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008605/0.01407, allocations: 0.7481 MB / 340.6 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004384/0.01451, allocations: 411.4 kB / 341 MB, free: 112 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.01582, allocations: 2.338 MB / 343.3 MB, free: 13.76 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000608/0.01643, allocations: 0.6029 MB / 343.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009443/0.01737, allocations: 1.317 MB / 345.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005272/0.0179, allocations: 0.6503 MB / 345.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.01805, allocations: 220 kB / 346.1 MB, free: 10.92 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.0183, allocations: 259.9 kB / 346.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.0185, allocations: 438.3 kB / 346.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004225/0.01892, allocations: 0.6976 MB / 347.5 MB, free: 9.539 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.02053, allocations: 2.679 MB / 350.1 MB, free: 6.852 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.02053, allocations: 0 / 350.1 MB, free: 6.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.02053, allocations: 0 / 350.1 MB, free: 6.852 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.02055, allocations: 0 / 350.1 MB, free: 6.852 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.001983/0.02253, allocations: 2.022 MB / 352.2 MB, free: 4.781 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.02257, allocations: 11.98 kB / 352.2 MB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004106/0.02298, allocations: 267.6 kB / 352.4 MB, free: 4.508 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.02405, allocations: 0.9717 MB / 353.4 MB, free: 3.504 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.133e-05/0.02411, allocations: 123.5 kB / 353.5 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.02424, allocations: 156.3 kB / 353.7 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.02574, allocations: 1.596 MB / 355.3 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.547e-05/0.02578, allocations: 11.95 kB / 355.3 MB, free: 1.523 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.661e-05/0.02585, allocations: 64 kB / 355.3 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.02587, allocations: 36 kB / 355.4 MB, free: 1.426 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.027, allocations: 0.9746 MB / 356.4 MB, free: 456 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004186/0.03119, allocations: 5.701 MB / 362.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004902/0.03168, allocations: 364.9 kB / 362.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002538/0.03193, allocations: 210.9 kB / 362.6 MB, free: 9.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.03196, allocations: 8.5 kB / 362.6 MB, free: 9.832 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000325/0.03229, allocations: 321.2 kB / 362.9 MB, free: 9.484 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.154e-06/0.03229, allocations: 4 kB / 362.9 MB, free: 9.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.001778/0.03407, allocations: 1.54 MB / 364.5 MB, free: 7.902 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.03413, allocations: 162.7 kB / 364.6 MB, free: 7.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008791/0.03501, allocations: 1.114 MB / 365.8 MB, free: 6.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.03504, allocations: 37.7 kB / 365.8 MB, free: 6.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003923/0.03543, allocations: 0.9005 MB / 366.7 MB, free: 5.625 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.993e-05/0.03553, allocations: 218.2 kB / 366.9 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.03569, allocations: 214.8 kB / 367.1 MB, free: 5.191 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.502e-05/0.03578, allocations: 357.9 kB / 367.5 MB, free: 4.836 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/0.03607, allocations: 252.2 kB / 367.7 MB, free: 4.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005361/0.0366, allocations: 0.9367 MB / 368.7 MB, free: 3.344 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008216/0.03743, allocations: 1.118 MB / 369.8 MB, free: 1.957 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.03743, allocations: 8 kB / 369.8 MB, free: 1.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00112/0.03855, allocations: 1.197 MB / 371 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.03859, allocations: 41.64 kB / 371 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.03861, allocations: 20 kB / 371 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.03877, allocations: 66.38 kB / 371.1 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.03919, allocations: 263.6 kB / 371.4 MB, free: 344 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.04046, allocations: 2.52 MB / 373.9 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004001/0.04087, allocations: 67.92 kB / 373.9 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.04091, allocations: 60 kB / 374 MB, free: 13.49 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.0003493/0.04126, allocations: 369.2 kB / 374.4 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.215e-05/0.04135, allocations: 127.1 kB / 374.5 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006091/0.04196, allocations: 0.5302 MB / 375 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.04197, allocations: 11.94 kB / 375 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.04197, allocations: 0 / 375 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.04198, allocations: 0 / 375 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.04353, allocations: 1.548 MB / 376.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.04354, allocations: 7.938 kB / 376.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.04377, allocations: 100.4 kB / 376.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001066/0.04387, allocations: 53.62 kB / 376.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.0439, allocations: 16 kB / 376.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.04503, allocations: 2.486 MB / 379.2 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.04503, allocations: 4 kB / 379.2 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007986/0.04583, allocations: 0.9029 MB / 380.1 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/0.04603, allocations: 155.2 kB / 380.3 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.547e-05/0.0461, allocations: 24.08 kB / 380.3 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.04633, allocations: 31.92 kB / 380.4 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.04641, allocations: 59.78 kB / 380.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.04643, allocations: 20 kB / 380.4 MB, free: 6.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006182/0.04705, allocations: 0.7122 MB / 381.1 MB, free: 5.941 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04705, allocations: 3.938 kB / 381.1 MB, free: 5.938 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006354/0.04769, allocations: 304 kB / 381.4 MB, free: 5.641 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.0002166/0.0479, allocations: 127.1 kB / 381.6 MB, free: 5.508 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009258/0.04883, allocations: 0.9367 MB / 382.5 MB, free: 4.531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.04883, allocations: 4 kB / 382.5 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000435/0.04927, allocations: 443.2 kB / 382.9 MB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007814/0.05005, allocations: 308.2 kB / 383.2 MB, free: 3.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.05256, allocations: 2.445 MB / 385.7 MB, free: 1.242 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.05294, allocations: 0.5961 MB / 386.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.05306, allocations: 80.5 kB / 386.4 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of SimCode: time 9.91e-07/0.05306, allocations: 4 kB / 386.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of Templates: time 0.02211/0.07517, allocations: 31.64 MB / 418 MB, free: 0.9023 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.667158273048699]