Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.0008199/0.0008199, allocations: 79.7 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.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.0009081/0.0009081, allocations: 173.9 kB / 23.95 MB, free: 0.6133 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.8978/0.8978, allocations: 177.1 MB / 204.3 MB, free: 5.723 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_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_1_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.713e-06/1.713e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.342e-05/1.513e-05, allocations: 5.094 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005173/0.005188, allocations: 6.375 MB / 330.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.008162, allocations: 2.228 MB / 333.2 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004029/0.008565, allocations: 19.94 kB / 333.2 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000982/0.009547, allocations: 476.9 kB / 333.7 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000589/0.01014, allocations: 428.6 kB / 334.1 MB, free: 6.363 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.01042, allocations: 207.7 kB / 334.3 MB, free: 6.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009407/0.01136, allocations: 1.256 MB / 335.5 MB, free: 4.898 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000401/0.01176, allocations: 313.1 kB / 335.8 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000806/0.01256, allocations: 0.7131 MB / 336.6 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.01291, allocations: 354.9 kB / 336.9 MB, free: 3.508 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.01302, allocations: 116 kB / 337 MB, free: 3.395 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.01321, allocations: 144 kB / 337.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.01332, allocations: 239.1 kB / 337.4 MB, free: 3.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.01357, allocations: 379.1 kB / 337.8 MB, free: 2.648 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.01458, allocations: 1.441 MB / 339.2 MB, free: 1.203 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.01458, allocations: 0 / 339.2 MB, free: 1.203 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.01458, allocations: 0 / 339.2 MB, free: 1.203 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.298e-05/0.01461, allocations: 0 / 339.2 MB, free: 1.203 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.001463/0.01607, allocations: 1.193 MB / 340.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.0161, allocations: 8.031 kB / 340.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001042/0.01621, allocations: 131 kB / 340.5 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002996/0.01651, allocations: 152.2 kB / 340.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007634/0.01727, allocations: 0.5836 MB / 341.3 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.0173, allocations: 54.38 kB / 341.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.645e-05/0.01738, allocations: 84.33 kB / 341.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008691/0.01825, allocations: 0.8262 MB / 342.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.01827, allocations: 7.938 kB / 342.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.01831, allocations: 39.94 kB / 342.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.01832, allocations: 20 kB / 342.3 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006589/0.01898, allocations: 0.5153 MB / 342.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00273/0.02171, allocations: 3.04 MB / 345.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.02206, allocations: 217.9 kB / 346.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.0222, allocations: 108.8 kB / 346.2 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.02222, allocations: 7.938 kB / 346.2 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.02224, allocations: 30.56 kB / 346.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.863e-06/0.02224, allocations: 0 / 346.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001292/0.02353, allocations: 0.9136 MB / 347.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.02357, allocations: 81.34 kB / 347.2 MB, free: 8.828 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006469/0.02422, allocations: 0.7465 MB / 347.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.02424, allocations: 29.7 kB / 348 MB, free: 8.039 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.02449, allocations: 0.4996 MB / 348.5 MB, free: 7.535 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.054e-05/0.02455, allocations: 115 kB / 348.6 MB, free: 7.422 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.02466, allocations: 114.2 kB / 348.7 MB, free: 7.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.02478, allocations: 378.8 kB / 349.1 MB, free: 6.926 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.02495, allocations: 129.2 kB / 349.2 MB, free: 6.801 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.02525, allocations: 443.9 kB / 349.6 MB, free: 6.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000507/0.02576, allocations: 0.5833 MB / 350.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.02576, allocations: 4 kB / 350.2 MB, free: 5.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000651/0.02641, allocations: 0.6074 MB / 350.8 MB, free: 4.883 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.02643, allocations: 12 kB / 350.8 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.02644, allocations: 8 kB / 350.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001246/0.02657, allocations: 36.84 kB / 350.9 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.02681, allocations: 135.8 kB / 351 MB, free: 4.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008468/0.02766, allocations: 1.291 MB / 352.3 MB, free: 3.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002731/0.02793, allocations: 43.81 kB / 352.3 MB, free: 3.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.02796, allocations: 28 kB / 352.4 MB, free: 3.215 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.0002106/0.02817, allocations: 234 kB / 352.6 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.79e-05/0.02824, allocations: 75.53 kB / 352.7 MB, free: 2.902 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000387/0.02862, allocations: 321.9 kB / 353 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.02863, allocations: 4 kB / 353 MB, free: 2.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.02863, allocations: 3.938 kB / 353 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.02864, allocations: 3.984 kB / 353 MB, free: 2.562 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009873/0.02962, allocations: 0.996 MB / 354 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.02963, allocations: 0 / 354 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.02977, allocations: 63.89 kB / 354.1 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.529e-05/0.02982, allocations: 16.86 kB / 354.1 MB, free: 1.406 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.02983, allocations: 8 kB / 354.1 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005393/0.03037, allocations: 1.271 MB / 355.3 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.03038, allocations: 3.984 kB / 355.4 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005219/0.0309, allocations: 0.5636 MB / 355.9 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.03103, allocations: 99.53 kB / 356 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/0.03107, allocations: 8 kB / 356 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.03122, allocations: 20.08 kB / 356 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.03127, allocations: 31.89 kB / 356.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.03128, allocations: 11.94 kB / 356.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004117/0.03169, allocations: 0.5107 MB / 356.6 MB, free: 14.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03169, allocations: 0 / 356.6 MB, free: 14.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003951/0.03209, allocations: 160 kB / 356.7 MB, free: 14.57 MB / 330.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.0007694/0.03286, allocations: 1.117 MB / 357.9 MB, free: 13.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005342/0.03339, allocations: 449.3 kB / 358.3 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.03339, allocations: 0 / 358.3 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.03359, allocations: 230.6 kB / 358.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00054/0.03413, allocations: 179.3 kB / 358.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006054/0.04018, allocations: 6.2 MB / 364.9 MB, free: 5.938 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.04042, allocations: 356.5 kB / 365.3 MB, free: 5.562 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000261/0.04069, allocations: 90.02 kB / 365.3 MB, free: 5.473 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002557/0.04094, allocations: 304.3 kB / 365.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.04094, allocations: 0 / 365.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.07042, allocations: 17.01 MB / 382.6 MB, free: 4.441 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.452/7.522, allocations: 6.594 kB / 382.7 MB, free: 4.438 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcpm.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi [Calling sys.exit(0), Time elapsed: 9.708784336224198]