Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.0009694/0.0009694, 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.001048/0.001048, 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.8596/0.8596, allocations: 173.3 MB / 200.4 MB, free: 9.43 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.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.084e-05/2.256e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007343/0.007366, allocations: 6.35 MB / 324.8 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.0106, allocations: 2.185 MB / 327 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004218/0.01102, allocations: 19.94 kB / 327 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.01215, allocations: 484.8 kB / 327.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007037/0.01285, allocations: 428.6 kB / 327.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003499/0.0132, allocations: 207.7 kB / 328.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.01435, allocations: 1.256 MB / 329.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000516/0.01486, allocations: 316.5 kB / 329.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008199/0.01568, allocations: 0.6976 MB / 330.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.01599, allocations: 354.9 kB / 330.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.622e-05/0.01607, allocations: 120 kB / 330.8 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.01623, allocations: 151.9 kB / 331 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.01633, allocations: 235 kB / 331.2 MB, free: 9.535 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.01657, allocations: 387.1 kB / 331.6 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008889/0.01746, allocations: 1.425 MB / 333 MB, free: 7.727 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.01746, allocations: 0 / 333 MB, free: 7.727 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01746, allocations: 0 / 333 MB, free: 7.727 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.01747, allocations: 0 / 333 MB, free: 7.727 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001231/0.0187, allocations: 1.197 MB / 334.2 MB, free: 6.496 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.01874, allocations: 12.92 kB / 334.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001025/0.01884, allocations: 123.1 kB / 334.3 MB, free: 6.355 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002497/0.01909, allocations: 152.2 kB / 334.5 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006592/0.01975, allocations: 0.5797 MB / 335.1 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.01978, allocations: 62.31 kB / 335.1 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.799e-05/0.01985, allocations: 84.33 kB / 335.2 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008419/0.02069, allocations: 0.8301 MB / 336 MB, free: 4.586 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.02071, allocations: 7.938 kB / 336 MB, free: 4.578 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.02075, allocations: 36 kB / 336.1 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.02076, allocations: 20 kB / 336.1 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006093/0.02137, allocations: 0.5191 MB / 336.6 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.02383, allocations: 3.036 MB / 339.6 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.02413, allocations: 218.5 kB / 339.9 MB, free: 0.543 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.02426, allocations: 108.8 kB / 340 MB, free: 444 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.02428, allocations: 4 kB / 340 MB, free: 440 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.0243, allocations: 34.56 kB / 340 MB, free: 396 kB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.162e-06/0.0243, allocations: 0 / 340 MB, free: 396 kB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001411/0.02571, allocations: 0.9026 MB / 340.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.02574, allocations: 81.34 kB / 341 MB, free: 15.35 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005756/0.02632, allocations: 0.7542 MB / 341.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.02633, allocations: 33.7 kB / 341.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.02655, allocations: 0.5035 MB / 342.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.0266, allocations: 107.1 kB / 342.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.795e-05/0.02669, allocations: 118.2 kB / 342.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.02679, allocations: 382.8 kB / 342.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.02694, allocations: 117.2 kB / 343 MB, free: 13.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.0272, allocations: 451.8 kB / 343.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004373/0.02764, allocations: 0.5717 MB / 344 MB, free: 12.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.02765, allocations: 7.984 kB / 344 MB, free: 12.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0005906/0.02824, allocations: 0.6073 MB / 344.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.02825, allocations: 14.95 kB / 344.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.02826, allocations: 15.94 kB / 344.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.639e-05/0.02836, allocations: 32.86 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.02858, allocations: 140.1 kB / 344.8 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005943/0.02918, allocations: 1.283 MB / 346.1 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.0294, allocations: 39.88 kB / 346.1 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.02942, allocations: 32 kB / 346.2 MB, free: 9.727 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0001804/0.0296, allocations: 237.7 kB / 346.4 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.654e-05/0.02966, allocations: 75.53 kB / 346.5 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003477/0.03, allocations: 317.8 kB / 346.8 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.03001, allocations: 4 kB / 346.8 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.03001, allocations: 3.938 kB / 346.8 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.03001, allocations: 4.031 kB / 346.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.03114, allocations: 1.003 MB / 347.8 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.03114, allocations: 4 kB / 347.8 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.03127, allocations: 55.91 kB / 347.8 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.532e-05/0.03132, allocations: 24.84 kB / 347.9 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.03133, allocations: 8 kB / 347.9 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000495/0.03183, allocations: 1.271 MB / 349.2 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.03183, allocations: 4 kB / 349.2 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004726/0.0323, allocations: 0.557 MB / 349.7 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.03242, allocations: 99.53 kB / 349.8 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.03246, allocations: 8 kB / 349.8 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.03261, allocations: 23.97 kB / 349.8 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.03266, allocations: 23.91 kB / 349.9 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.03267, allocations: 11.94 kB / 349.9 MB, free: 5.746 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003933/0.03306, allocations: 0.5029 MB / 350.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03306, allocations: 0 / 350.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003594/0.03342, allocations: 167.9 kB / 350.5 MB, free: 5.086 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (27): * Single equations (assignments): 26 * 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.0007002/0.03412, allocations: 1.113 MB / 351.7 MB, free: 3.922 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004744/0.03459, allocations: 444.9 kB / 352.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.03459, allocations: 0 / 352.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.03478, allocations: 234.5 kB / 352.3 MB, free: 3.234 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005059/0.03528, allocations: 179.9 kB / 352.5 MB, free: 3.059 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005739/0.04102, allocations: 6.219 MB / 358.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.04123, allocations: 344.7 kB / 359.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.04141, allocations: 90.02 kB / 359.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.04165, allocations: 308.4 kB / 359.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.04165, allocations: 0 / 359.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.06927, allocations: 16.97 MB / 376.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/7.392, allocations: 7.812 kB / 376.4 MB, free: 10.96 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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: 9.755391562357545]