Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001181/0.001181, allocations: 76.06 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.001091/0.001091, allocations: 149.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.8834/0.8834, allocations: 173.4 MB / 200.5 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.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/1.973e-05, allocations: 6.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007676/0.007696, allocations: 10.55 MB / 329 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00349/0.01119, allocations: 3.109 MB / 332.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006207/0.01181, allocations: 47.81 kB / 332.2 MB, free: 8.578 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.01292, allocations: 0.6399 MB / 332.8 MB, free: 7.934 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009777/0.0139, allocations: 0.8179 MB / 333.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00049/0.01439, allocations: 415.3 kB / 334 MB, free: 6.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001673/0.01607, allocations: 2.508 MB / 336.5 MB, free: 4.188 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006383/0.0167, allocations: 0.6109 MB / 337.1 MB, free: 3.523 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.01803, allocations: 1.395 MB / 338.5 MB, free: 2.125 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005615/0.01859, allocations: 0.7126 MB / 339.2 MB, free: 1.406 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.01876, allocations: 228 kB / 339.5 MB, free: 1.184 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002737/0.01903, allocations: 268 kB / 339.7 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.01925, allocations: 466.2 kB / 340.2 MB, free: 476 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004396/0.01969, allocations: 0.7327 MB / 340.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.02135, allocations: 2.846 MB / 343.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.02135, allocations: 0 / 343.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.02136, allocations: 0 / 343.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.02137, allocations: 4 kB / 343.8 MB, free: 12.87 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002342/0.02371, allocations: 2.121 MB / 345.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.02375, allocations: 12.92 kB / 345.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000177/0.02393, allocations: 216.1 kB / 346.1 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00046/0.02439, allocations: 295.5 kB / 346.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.02553, allocations: 1.043 MB / 347.4 MB, free: 9.102 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.266e-05/0.02559, allocations: 111.5 kB / 347.5 MB, free: 8.992 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.02572, allocations: 168.3 kB / 347.7 MB, free: 8.828 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.02728, allocations: 1.612 MB / 349.3 MB, free: 7.129 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/0.02731, allocations: 11.95 kB / 349.3 MB, free: 7.117 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.718e-05/0.02739, allocations: 64 kB / 349.4 MB, free: 7.055 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.02741, allocations: 36 kB / 349.4 MB, free: 7.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.02869, allocations: 1.049 MB / 350.5 MB, free: 5.965 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004965/0.03366, allocations: 5.639 MB / 356.1 MB, free: 36 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009389/0.0346, allocations: 0.5697 MB / 356.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005602/0.03516, allocations: 429.7 kB / 357.1 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.03519, allocations: 8.656 kB / 357.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.03522, allocations: 47.09 kB / 357.2 MB, free: 14.97 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 2.024e-06/0.03522, allocations: 4 kB / 357.2 MB, free: 14.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.003142/0.03837, allocations: 2.173 MB / 359.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.03842, allocations: 111.5 kB / 359.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.03955, allocations: 1.333 MB / 360.8 MB, free: 11.28 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.03958, allocations: 37.7 kB / 360.8 MB, free: 11.24 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003988/0.03998, allocations: 0.8633 MB / 361.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.04011, allocations: 269.7 kB / 361.9 MB, free: 10.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.04028, allocations: 206.8 kB / 362.2 MB, free: 9.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.347e-05/0.04037, allocations: 349.9 kB / 362.5 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003576/0.04073, allocations: 282.5 kB / 362.8 MB, free: 9.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005624/0.04129, allocations: 0.7887 MB / 363.6 MB, free: 8.254 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009743/0.04226, allocations: 1.088 MB / 364.6 MB, free: 6.957 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.04227, allocations: 4 kB / 364.6 MB, free: 6.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001374/0.04364, allocations: 1.268 MB / 365.9 MB, free: 5.668 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002909/0.04393, allocations: 12 kB / 365.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.04395, allocations: 12 kB / 365.9 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000316/0.04426, allocations: 138.8 kB / 366.1 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004456/0.04471, allocations: 255.6 kB / 366.3 MB, free: 5.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.04697, allocations: 4.301 MB / 370.6 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004179/0.04739, allocations: 60.06 kB / 370.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-05/0.04744, allocations: 59.98 kB / 370.7 MB, free: 500 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003621/0.0478, allocations: 361.3 kB / 371.1 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.04792, allocations: 151.2 kB / 371.2 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.04893, allocations: 0.8178 MB / 372.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.04893, allocations: 8 kB / 372.1 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.04894, allocations: 3.938 kB / 372.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.04894, allocations: 11.92 kB / 372.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.05138, allocations: 2.126 MB / 374.2 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.05139, allocations: 4 kB / 374.2 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002884/0.05167, allocations: 123.9 kB / 374.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002333/0.05191, allocations: 134.6 kB / 374.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.05194, allocations: 24.05 kB / 374.5 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/0.05418, allocations: 4.445 MB / 378.9 MB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.05419, allocations: 7.938 kB / 378.9 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.05575, allocations: 1.293 MB / 380.2 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.05601, allocations: 211 kB / 380.4 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.357e-05/0.0561, allocations: 20.12 kB / 380.5 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003025/0.0564, allocations: 43.97 kB / 380.5 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.762e-05/0.05649, allocations: 68.33 kB / 380.6 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.05651, allocations: 27.88 kB / 380.6 MB, free: 6.055 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007751/0.05729, allocations: 0.882 MB / 381.5 MB, free: 5.172 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.05729, allocations: 0 / 381.5 MB, free: 5.172 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007213/0.05801, allocations: 331.9 kB / 381.8 MB, free: 4.848 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001606/0.05962, allocations: 1.878 MB / 383.7 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.06073, allocations: 1.084 MB / 384.8 MB, free: 1.762 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.06073, allocations: 0 / 384.8 MB, free: 1.762 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005634/0.06129, allocations: 0.6848 MB / 385.5 MB, free: 1.043 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009197/0.06221, allocations: 367.7 kB / 385.8 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.07468, allocations: 11.62 MB / 397.4 MB, free: 4.359 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.07511, allocations: 0.638 MB / 398.1 MB, free: 3.684 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003821/0.07549, allocations: 171.6 kB / 398.2 MB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.07598, allocations: 0.6175 MB / 398.9 MB, free: 2.895 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.07598, allocations: 0 / 398.9 MB, free: 2.895 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04678/0.1228, allocations: 33.7 MB / 432.6 MB, free: 1.566 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.965/9.088, allocations: 0 / 432.6 MB, free: 1.566 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia1.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcpm1.la.i,dcpm2.la.i,loadInertia1.phi,loadInertia1.w,loadInertia2.phi,loadInertia2.w Variables in the result:time,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque1.phi [Calling sys.exit(0), Time elapsed: 11.352574879303575]