Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009129/0.0009129, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008053/0.0008053, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8644/0.8644, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.639e-05/1.769e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.005597/0.005614, allocations: 7.047 MB / 325.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003428/0.009043, allocations: 2.423 MB / 327.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006269/0.00967, allocations: 27.88 kB / 327.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.01077, allocations: 0.5323 MB / 328.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007956/0.01157, allocations: 0.5 MB / 329 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.01191, allocations: 243.7 kB / 329.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.01305, allocations: 1.493 MB / 330.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005001/0.01355, allocations: 371.2 kB / 331.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008202/0.01437, allocations: 0.8301 MB / 331.9 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003726/0.01475, allocations: 430.6 kB / 332.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.01485, allocations: 136 kB / 332.4 MB, free: 8.262 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.01507, allocations: 179.9 kB / 332.6 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.0152, allocations: 274.9 kB / 332.9 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.01549, allocations: 454.9 kB / 333.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.01665, allocations: 1.702 MB / 335 MB, free: 5.664 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.01666, allocations: 0 / 335 MB, free: 5.664 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.01666, allocations: 0 / 335 MB, free: 5.664 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.01668, allocations: 0 / 335 MB, free: 5.664 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001531/0.01821, allocations: 1.372 MB / 336.4 MB, free: 4.258 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.01825, allocations: 12.92 kB / 336.4 MB, free: 4.246 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.01837, allocations: 152.3 kB / 336.6 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003249/0.01869, allocations: 172.1 kB / 336.7 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000847/0.01954, allocations: 0.6609 MB / 337.4 MB, free: 3.238 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.01958, allocations: 74 kB / 337.5 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-05/0.01967, allocations: 92 kB / 337.6 MB, free: 3.074 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.02068, allocations: 1.002 MB / 338.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.02071, allocations: 3.953 kB / 338.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.02076, allocations: 44 kB / 338.6 MB, free: 1.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.02077, allocations: 27.94 kB / 338.6 MB, free: 1.953 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007966/0.02157, allocations: 0.6246 MB / 339.3 MB, free: 1.324 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003096/0.02466, allocations: 3.477 MB / 342.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.02505, allocations: 266.5 kB / 343 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.02522, allocations: 139.5 kB / 343.1 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.02524, allocations: 4 kB / 343.1 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.02527, allocations: 38.56 kB / 343.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.655e-06/0.02527, allocations: 0 / 343.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=35): time 0.001454/0.02672, allocations: 1.06 MB / 344.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.02676, allocations: 81.11 kB / 344.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008531/0.02762, allocations: 0.8485 MB / 345.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.02764, allocations: 29.7 kB / 345.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003655/0.02801, allocations: 0.5734 MB / 345.8 MB, free: 10.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.75e-05/0.02809, allocations: 138.9 kB / 345.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.02822, allocations: 118.6 kB / 346 MB, free: 10.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.02831, allocations: 341.9 kB / 346.4 MB, free: 9.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.02851, allocations: 149.9 kB / 346.5 MB, free: 9.746 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.02883, allocations: 481.9 kB / 347 MB, free: 9.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/0.02937, allocations: 0.6402 MB / 347.6 MB, free: 8.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.02937, allocations: 4 kB / 347.6 MB, free: 8.336 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0007373/0.03011, allocations: 0.693 MB / 348.3 MB, free: 7.633 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.03013, allocations: 8 kB / 348.3 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.03014, allocations: 11.98 kB / 348.3 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001201/0.03026, allocations: 36.84 kB / 348.4 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.03054, allocations: 159.7 kB / 348.5 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007254/0.03127, allocations: 1.283 MB / 349.8 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.03157, allocations: 31.94 kB / 349.8 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.0316, allocations: 36 kB / 349.9 MB, free: 5.957 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * 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.0002792/0.03188, allocations: 253.6 kB / 350.1 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.322e-05/0.03195, allocations: 95.53 kB / 350.2 MB, free: 5.605 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004737/0.03243, allocations: 382.1 kB / 350.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.03243, allocations: 4 kB / 350.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.03243, allocations: 0 / 350.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.03244, allocations: 0 / 350.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.03365, allocations: 1.152 MB / 351.7 MB, free: 3.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.03365, allocations: 0 / 351.7 MB, free: 3.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.03383, allocations: 71.89 kB / 351.8 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.39e-05/0.0339, allocations: 20.86 kB / 351.8 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.03391, allocations: 15.92 kB / 351.8 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006036/0.03452, allocations: 1.271 MB / 353.1 MB, free: 2.488 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.03452, allocations: 0 / 353.1 MB, free: 2.488 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/0.03514, allocations: 0.6328 MB / 353.7 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.03531, allocations: 115.7 kB / 353.9 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.146e-05/0.03537, allocations: 15.98 kB / 353.9 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.03556, allocations: 19.98 kB / 353.9 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.544e-05/0.03561, allocations: 35.83 kB / 353.9 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.03563, allocations: 11.98 kB / 353.9 MB, free: 1.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005054/0.03613, allocations: 0.5576 MB / 354.5 MB, free: 1.066 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.03613, allocations: 0 / 354.5 MB, free: 1.066 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004814/0.03661, allocations: 188 kB / 354.7 MB, free: 0.8828 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.0008974/0.03751, allocations: 1.196 MB / 355.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006445/0.03816, allocations: 0.5007 MB / 356.4 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.03816, allocations: 0 / 356.4 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002369/0.0384, allocations: 262.4 kB / 356.6 MB, free: 14.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.03906, allocations: 210.6 kB / 356.8 MB, free: 14.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007372/0.04643, allocations: 7.047 MB / 363.9 MB, free: 7.145 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.04672, allocations: 409 kB / 364.3 MB, free: 6.715 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002939/0.04701, allocations: 106.9 kB / 364.4 MB, free: 6.605 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.0473, allocations: 360.4 kB / 364.7 MB, free: 6.254 MB / 330.7 MB Notification: Performance of SimCode: time 9.71e-07/0.04731, allocations: 0 / 364.7 MB, free: 6.254 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03552/0.08282, allocations: 19.62 MB / 384.4 MB, free: 2.926 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.795/7.878, allocations: 3.516 kB / 384.4 MB, free: 2.926 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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: 10.293914681300521]