Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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.001216/0.001216, 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.00123/0.00123, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.8694/0.8694, allocations: 173.4 MB / 200.4 MB, free: 9.418 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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.3e-05/1.435e-05, allocations: 6.281 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.00571/0.005724, allocations: 7.039 MB / 325.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003123/0.008848, allocations: 2.454 MB / 327.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000433/0.009281, allocations: 35.75 kB / 328 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009104/0.01019, allocations: 484.8 kB / 328.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000572/0.01076, allocations: 452.4 kB / 328.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.01104, allocations: 223.5 kB / 329.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000792/0.01183, allocations: 1.283 MB / 330.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003916/0.01223, allocations: 342.5 kB / 330.7 MB, free: 9.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00055/0.01278, allocations: 0.7365 MB / 331.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.01315, allocations: 382.8 kB / 331.8 MB, free: 8.867 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.569e-05/0.01324, allocations: 112 kB / 331.9 MB, free: 8.758 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.01341, allocations: 152 kB / 332.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.01355, allocations: 243.1 kB / 332.3 MB, free: 8.371 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002363/0.01378, allocations: 395 kB / 332.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009707/0.01476, allocations: 1.46 MB / 334.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.01476, allocations: 0 / 334.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.01476, allocations: 0 / 334.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.01477, allocations: 0 / 334.2 MB, free: 6.52 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001414/0.01618, allocations: 1.255 MB / 335.4 MB, free: 5.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.01622, allocations: 12.92 kB / 335.4 MB, free: 5.219 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.01632, allocations: 135.5 kB / 335.6 MB, free: 5.078 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002661/0.01659, allocations: 148.2 kB / 335.7 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006714/0.01726, allocations: 0.5795 MB / 336.3 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.487e-05/0.01729, allocations: 70.38 kB / 336.4 MB, free: 4.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.676e-05/0.01737, allocations: 84.38 kB / 336.4 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008642/0.01824, allocations: 0.8726 MB / 337.3 MB, free: 3.262 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.01826, allocations: 7.953 kB / 337.3 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.0183, allocations: 36 kB / 337.4 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.01831, allocations: 20 kB / 337.4 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006771/0.01899, allocations: 0.5348 MB / 337.9 MB, free: 2.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002864/0.02185, allocations: 3.064 MB / 341 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.02222, allocations: 234.5 kB / 341.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.02236, allocations: 104.8 kB / 341.3 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.02239, allocations: 11.97 kB / 341.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.02241, allocations: 42.56 kB / 341.4 MB, free: 15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.623e-06/0.02241, allocations: 0 / 341.4 MB, free: 15 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001288/0.0237, allocations: 0.9379 MB / 342.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.02374, allocations: 81.11 kB / 342.4 MB, free: 13.92 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007137/0.02445, allocations: 0.7818 MB / 343.2 MB, free: 13.13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.02447, allocations: 33.7 kB / 343.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.02472, allocations: 0.5267 MB / 343.7 MB, free: 12.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.017e-05/0.02478, allocations: 111 kB / 343.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.02489, allocations: 126.2 kB / 344 MB, free: 12.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.02501, allocations: 386.7 kB / 344.3 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.0252, allocations: 129.2 kB / 344.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.02554, allocations: 472.2 kB / 344.9 MB, free: 11.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008061/0.02634, allocations: 0.614 MB / 345.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.02635, allocations: 8 kB / 345.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007018/0.02705, allocations: 0.6465 MB / 346.2 MB, free: 9.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.02707, allocations: 12 kB / 346.2 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.02708, allocations: 8 kB / 346.2 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001264/0.02721, allocations: 36.84 kB / 346.2 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.02748, allocations: 155.7 kB / 346.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007619/0.02825, allocations: 1.275 MB / 347.7 MB, free: 8.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.02853, allocations: 47.92 kB / 347.7 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.02856, allocations: 32 kB / 347.8 MB, free: 8.082 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0002302/0.02879, allocations: 241.5 kB / 348 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.729e-05/0.02885, allocations: 79.66 kB / 348.1 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004516/0.0293, allocations: 329.9 kB / 348.4 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.02931, allocations: 4 kB / 348.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.02931, allocations: 0 / 348.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.02932, allocations: 0 / 348.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.03041, allocations: 1.034 MB / 349.4 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.03041, allocations: 48 / 349.4 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.03058, allocations: 63.94 kB / 349.5 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-05/0.03065, allocations: 28.78 kB / 349.5 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.03066, allocations: 8 kB / 349.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006192/0.03128, allocations: 1.275 MB / 350.8 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.03128, allocations: 7.969 kB / 350.8 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.03184, allocations: 0.5689 MB / 351.4 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.03198, allocations: 107.6 kB / 351.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.03203, allocations: 11.94 kB / 351.5 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.03221, allocations: 23.97 kB / 351.5 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.821e-05/0.03227, allocations: 19.97 kB / 351.5 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.03228, allocations: 11.98 kB / 351.5 MB, free: 4.031 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004381/0.03272, allocations: 0.5147 MB / 352.1 MB, free: 3.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03272, allocations: 0 / 352.1 MB, free: 3.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004302/0.03315, allocations: 172 kB / 352.2 MB, free: 3.352 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 (28): * Single equations (assignments): 27 * 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.001072/0.03422, allocations: 1.137 MB / 353.4 MB, free: 2.164 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005673/0.03479, allocations: 476.6 kB / 353.8 MB, free: 1.688 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.03479, allocations: 4 kB / 353.8 MB, free: 1.684 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.035, allocations: 238.4 kB / 354.1 MB, free: 1.438 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/0.03558, allocations: 183.7 kB / 354.2 MB, free: 1.262 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006311/0.04189, allocations: 6.456 MB / 360.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.04212, allocations: 361.3 kB / 361.1 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002084/0.04232, allocations: 90.17 kB / 361.1 MB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002535/0.04258, allocations: 320.4 kB / 361.5 MB, free: 9.594 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.04258, allocations: 0 / 361.5 MB, free: 9.594 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.07617, allocations: 17.65 MB / 379.1 MB, free: 8.203 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.469/7.545, allocations: 3.859 kB / 379.1 MB, free: 8.199 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.291009483858943]