Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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.001318/0.001318, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001384/0.001384, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 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 1.482/1.482, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 67.89 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1144, allocations: 53.38 MB / 426.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.2448/0.3592, allocations: 8.018 MB / 434.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004666/0.3639, allocations: 2.656 MB / 437 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.3654, allocations: 23.75 kB / 437.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.3672, allocations: 0.5249 MB / 437.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001882/0.3691, allocations: 434.8 kB / 438 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007463/0.3699, allocations: 215.7 kB / 438.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002586/0.3724, allocations: 1.236 MB / 439.5 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009162/0.3734, allocations: 372.2 kB / 439.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.3747, allocations: 0.4904 MB / 440.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008955/0.3756, allocations: 0.5205 MB / 440.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002341/0.3759, allocations: 115.2 kB / 440.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005328/0.3764, allocations: 153.7 kB / 441.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001883/0.3766, allocations: 241.8 kB / 441.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00074/0.3773, allocations: 0.5611 MB / 441.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002635/0.38, allocations: 1.469 MB / 443.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.38, allocations: 0.6094 kB / 443.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.38, allocations: 1.188 kB / 443.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.699e-05/0.38, allocations: 0 / 443.4 MB, free: 2.984 MB / 350.1 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.003007/0.383, allocations: 1.332 MB / 444.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/0.3831, allocations: 9.469 kB / 444.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.3833, allocations: 135.6 kB / 444.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008667/0.3842, allocations: 179.6 kB / 445 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.3855, allocations: 0.6447 MB / 445.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.484e-05/0.3855, allocations: 67.5 kB / 445.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.3857, allocations: 83.97 kB / 445.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.3873, allocations: 0.8161 MB / 446.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.3874, allocations: 13.83 kB / 446.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.07e-05/0.3874, allocations: 35.81 kB / 446.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.3875, allocations: 22.61 kB / 446.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.3887, allocations: 0.545 MB / 447.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005763/0.3944, allocations: 3.56 MB / 450.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.3951, allocations: 232.6 kB / 451 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.3954, allocations: 109.2 kB / 451.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.3954, allocations: 3.891 kB / 451.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.3954, allocations: 39.72 kB / 451.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.926e-06/0.3954, allocations: 5.281 kB / 451.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002888/0.3983, allocations: 1.087 MB / 452.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.3984, allocations: 85.3 kB / 452.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.3997, allocations: 0.7594 MB / 453.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.195e-05/0.3998, allocations: 31.83 kB / 453.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000482/0.4003, allocations: 0.5241 MB / 453.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.4004, allocations: 113.3 kB / 453.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.4006, allocations: 122 kB / 453.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002646/0.4009, allocations: 385.6 kB / 454.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004638/0.4013, allocations: 134.9 kB / 454.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006901/0.402, allocations: 445.6 kB / 454.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009904/0.403, allocations: 0.6121 MB / 455.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.403, allocations: 4.812 kB / 455.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001487/0.4045, allocations: 0.6548 MB / 456.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.4046, allocations: 10.42 kB / 456.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.4046, allocations: 13.56 kB / 456.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001963/0.4048, allocations: 38.84 kB / 456.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005173/0.4053, allocations: 149.5 kB / 456.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.4066, allocations: 1.388 MB / 457.7 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008341/0.4075, allocations: 46.09 kB / 457.7 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-05/0.4076, allocations: 33.75 kB / 457.8 MB, free: 9.016 MB / 366.1 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.0004883/0.408, allocations: 240.7 kB / 458 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.4083, allocations: 80.58 kB / 458.1 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008597/0.4091, allocations: 330.6 kB / 458.4 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.4091, allocations: 3 kB / 458.4 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4091, allocations: 1.344 kB / 458.4 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.4091, allocations: 9.844 kB / 458.4 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/0.4114, allocations: 1.118 MB / 459.5 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.4114, allocations: 2.469 kB / 459.5 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.4117, allocations: 59.86 kB / 459.6 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001201/0.4119, allocations: 26.55 kB / 459.6 MB, free: 7.922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.4119, allocations: 10.03 kB / 459.6 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.4131, allocations: 1.381 MB / 461 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4131, allocations: 7.688 kB / 461 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.4143, allocations: 0.5687 MB / 461.6 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000458/0.4148, allocations: 184.5 kB / 461.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.4149, allocations: 13.7 kB / 461.8 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003758/0.4153, allocations: 18.62 kB / 461.8 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.4154, allocations: 27.45 kB / 461.8 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.4154, allocations: 8.922 kB / 461.8 MB, free: 5.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009061/0.4163, allocations: 0.5175 MB / 462.4 MB, free: 5.703 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4163, allocations: 0 / 462.4 MB, free: 5.703 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001012/0.4173, allocations: 175.2 kB / 462.5 MB, free: 5.684 MB / 366.1 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.001708/0.419, allocations: 1.15 MB / 463.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.4202, allocations: 467.9 kB / 464.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.4203, allocations: 1.031 kB / 464.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004556/0.4207, allocations: 239.8 kB / 464.4 MB, free: 4.281 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.422, allocations: 192.8 kB / 464.6 MB, free: 4.199 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/0.4339, allocations: 6.532 MB / 471.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006857/0.4346, allocations: 0.947 MB / 472 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004541/0.4351, allocations: 92.12 kB / 472.1 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004252/0.4355, allocations: 321.1 kB / 472.4 MB, free: 14.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4355, allocations: 0 / 472.4 MB, free: 14.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05584/0.4913, allocations: 16.19 MB / 488.6 MB, free: 1.055 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.95, allocations: 11.91 kB / 488.7 MB, free: 1.043 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.290215143933892]