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.001745/0.001745, allocations: 123 kB / 17.78 MB, free: 5.25 MB / 14.72 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.001812/0.001812, allocations: 197.2 kB / 20.73 MB, free: 2.309 MB / 14.72 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 1.497/1.497, allocations: 225.6 MB / 249.1 MB, free: 3.566 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001516/0.001516, allocations: 51.92 kB / 365.7 MB, free: 0.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1081, allocations: 52.15 MB / 417.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01472/0.1229, allocations: 12.2 MB / 430 MB, free: 308 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006914/0.1298, allocations: 3.28 MB / 433.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002103/0.1319, allocations: 43.88 kB / 433.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002738/0.1346, allocations: 0.6868 MB / 434 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002926/0.1375, allocations: 0.7911 MB / 434.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.1388, allocations: 399.5 kB / 435.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003857/0.1427, allocations: 2.421 MB / 437.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.1439, allocations: 0.6457 MB / 438.3 MB, free: 7.961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.1455, allocations: 0.9262 MB / 439.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/0.147, allocations: 0.9878 MB / 440.2 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00033/0.1473, allocations: 228 kB / 440.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005655/0.1478, allocations: 272 kB / 440.7 MB, free: 5.551 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003649/0.1482, allocations: 458.3 kB / 441.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.1494, allocations: 1.073 MB / 442.2 MB, free: 4.023 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003457/0.1529, allocations: 2.844 MB / 445 MB, free: 1.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1529, allocations: 0 / 445 MB, free: 1.168 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1529, allocations: 4 kB / 445 MB, free: 1.164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.575e-05/0.153, allocations: 0 / 445 MB, free: 1.164 MB / 366.1 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.2265/0.3795, allocations: 2.2 MB / 447.2 MB, free: 29.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3795, allocations: 13.06 kB / 447.2 MB, free: 29.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002868/0.3798, allocations: 219.9 kB / 447.5 MB, free: 29.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009967/0.3808, allocations: 291.5 kB / 447.7 MB, free: 29.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.3828, allocations: 1.137 MB / 448.9 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.048e-05/0.3829, allocations: 116.9 kB / 449 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002182/0.3831, allocations: 157 kB / 449.1 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.3856, allocations: 1.508 MB / 450.7 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.084e-05/0.3857, allocations: 15.5 kB / 450.7 MB, free: 28.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.3858, allocations: 61.56 kB / 450.7 MB, free: 28.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-05/0.3859, allocations: 38.75 kB / 450.8 MB, free: 28.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.388, allocations: 1.049 MB / 451.8 MB, free: 28.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008968/0.397, allocations: 6.249 MB / 458.1 MB, free: 24.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.3985, allocations: 0.5765 MB / 458.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008908/0.3994, allocations: 415.1 kB / 459 MB, free: 24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.56e-05/0.3995, allocations: 10.14 kB / 459.1 MB, free: 24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3995, allocations: 46.95 kB / 459.1 MB, free: 23.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.304e-06/0.3995, allocations: 1.688 kB / 459.1 MB, free: 23.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005109/0.4046, allocations: 2.389 MB / 461.5 MB, free: 22.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.4047, allocations: 110.6 kB / 461.6 MB, free: 22.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.4065, allocations: 1.303 MB / 462.9 MB, free: 21.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.129e-05/0.4066, allocations: 42 kB / 462.9 MB, free: 21.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004865/0.4071, allocations: 0.8726 MB / 463.8 MB, free: 21.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.4073, allocations: 277 kB / 464.1 MB, free: 20.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002735/0.4075, allocations: 205.8 kB / 464.3 MB, free: 20.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.372e-05/0.4076, allocations: 350.1 kB / 464.6 MB, free: 20.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005906/0.4082, allocations: 284.8 kB / 464.9 MB, free: 20.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007206/0.4089, allocations: 0.741 MB / 465.7 MB, free: 19.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.4102, allocations: 1.092 MB / 466.7 MB, free: 18.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.427e-06/0.4103, allocations: 4.125 kB / 466.7 MB, free: 18.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002522/0.4128, allocations: 1.257 MB / 468 MB, free: 18.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.4128, allocations: 12.72 kB / 468 MB, free: 18.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.4128, allocations: 20.25 kB / 468 MB, free: 18.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005501/0.4134, allocations: 139.1 kB / 468.2 MB, free: 18.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008266/0.4142, allocations: 260.5 kB / 468.4 MB, free: 18.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003022/0.4172, allocations: 4.633 MB / 473.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.4185, allocations: 64.16 kB / 473.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-05/0.4186, allocations: 53.33 kB / 473.2 MB, free: 13.64 MB / 366.1 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.0006056/0.4192, allocations: 361.1 kB / 473.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002365/0.4194, allocations: 146.1 kB / 473.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.4212, allocations: 0.8244 MB / 474.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.4212, allocations: 11.91 kB / 474.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4212, allocations: 1.312 kB / 474.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.4213, allocations: 7.359 kB / 474.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003997/0.4253, allocations: 2.333 MB / 476.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.4253, allocations: 7.156 kB / 476.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005647/0.4258, allocations: 129.2 kB / 477 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000463/0.4263, allocations: 135.5 kB / 477.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.4263, allocations: 16.56 kB / 477.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/0.4295, allocations: 4.788 MB / 481.9 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.4295, allocations: 4.531 kB / 481.9 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.4321, allocations: 1.304 MB / 483.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00068/0.4328, allocations: 291.1 kB / 483.5 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/0.433, allocations: 15.19 kB / 483.5 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000629/0.4336, allocations: 48.53 kB / 483.6 MB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.4338, allocations: 61.17 kB / 483.6 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.201e-05/0.4338, allocations: 21.88 kB / 483.7 MB, free: 5.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001241/0.4351, allocations: 0.8797 MB / 484.5 MB, free: 5.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4351, allocations: 0 / 484.5 MB, free: 5.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001553/0.4366, allocations: 330.2 kB / 484.9 MB, free: 5 MB / 366.1 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.002632/0.4392, allocations: 1.893 MB / 486.7 MB, free: 3.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.4413, allocations: 1.084 MB / 487.8 MB, free: 2.898 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.4413, allocations: 0 / 487.8 MB, free: 2.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008723/0.4422, allocations: 0.6909 MB / 488.5 MB, free: 2.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.4445, allocations: 368.2 kB / 488.9 MB, free: 2.191 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02142/0.4659, allocations: 11.72 MB / 0.4889 GB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009525/0.4669, allocations: 1.221 MB / 0.4901 GB, free: 6.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007393/0.4676, allocations: 171.6 kB / 0.4902 GB, free: 6.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007988/0.4684, allocations: 0.6086 MB / 0.4908 GB, free: 5.547 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4684, allocations: 0 / 0.4908 GB, free: 5.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08234/0.5507, allocations: 31.42 MB / 0.5215 GB, free: 6.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.52/15.07, allocations: 4.062 kB / 0.5215 GB, free: 6.484 MB / 414.1 MB " [Timeout remaining time 645] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 18.388968241866678]