Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001361/0.001361, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001512/0.001512, allocations: 207.5 kB / 20.75 MB, free: 2.312 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.02 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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 59.91 kB / 373 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1235, allocations: 53.38 MB / 426.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2771/0.4005, allocations: 12.21 MB / 438.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006764/0.4073, allocations: 3.314 MB / 441.9 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002288/0.4096, allocations: 44.44 kB / 441.9 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002294/0.4119, allocations: 0.6864 MB / 442.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003206/0.4151, allocations: 0.7896 MB / 443.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.4163, allocations: 401 kB / 443.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003842/0.4201, allocations: 2.417 MB / 446.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.4215, allocations: 0.6492 MB / 446.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002055/0.4235, allocations: 0.9323 MB / 447.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001561/0.4251, allocations: 0.9865 MB / 448.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000345/0.4254, allocations: 228.8 kB / 449 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006439/0.4261, allocations: 265.7 kB / 449.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000456/0.4265, allocations: 468.2 kB / 449.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001333/0.4279, allocations: 1.072 MB / 450.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004547/0.4324, allocations: 2.841 MB / 453.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4324, allocations: 0 / 453.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4324, allocations: 0 / 453.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.533e-05/0.4325, allocations: 0 / 453.6 MB, free: 12.55 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.005329/0.4378, allocations: 2.214 MB / 455.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.4379, allocations: 10.12 kB / 455.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003031/0.4382, allocations: 224.1 kB / 456.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.4393, allocations: 292.8 kB / 456.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.4416, allocations: 1.132 MB / 457.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-05/0.4417, allocations: 116.6 kB / 457.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.4419, allocations: 158.4 kB / 457.8 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002991/0.4449, allocations: 1.507 MB / 459.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.255e-05/0.445, allocations: 18.69 kB / 459.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.4451, allocations: 66.91 kB / 459.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.873e-05/0.4452, allocations: 37.53 kB / 459.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002501/0.4477, allocations: 1.041 MB / 460.4 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01032/0.458, allocations: 6.258 MB / 466.7 MB, free: 3.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.4597, allocations: 0.5825 MB / 467.3 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009941/0.4607, allocations: 423.3 kB / 467.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.4607, allocations: 7.312 kB / 467.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.4608, allocations: 46.3 kB / 467.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.085e-06/0.4608, allocations: 0 / 467.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005989/0.4668, allocations: 2.383 MB / 470.1 MB, free: 1.199 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.574e-05/0.4669, allocations: 111.3 kB / 470.2 MB, free: 1.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.469, allocations: 1.309 MB / 471.5 MB, free: 352 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.508e-05/0.4691, allocations: 48.97 kB / 471.6 MB, free: 300 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007837/0.4699, allocations: 0.868 MB / 472.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/0.4701, allocations: 270.8 kB / 472.7 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003185/0.4704, allocations: 207.3 kB / 472.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.4706, allocations: 348.1 kB / 473.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006139/0.4712, allocations: 285.3 kB / 473.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.4723, allocations: 0.732 MB / 474.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.474, allocations: 1.093 MB / 475.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.474, allocations: 2.094 kB / 475.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002643/0.4766, allocations: 1.259 MB / 476.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.4766, allocations: 15.44 kB / 476.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.4767, allocations: 20.28 kB / 476.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005342/0.4772, allocations: 134.3 kB / 476.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008417/0.478, allocations: 261.1 kB / 477.1 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004477/0.4825, allocations: 4.634 MB / 481.7 MB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.4839, allocations: 68.8 kB / 481.8 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.034e-05/0.4839, allocations: 52 kB / 481.8 MB, free: 7.473 MB / 382.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.0007275/0.4847, allocations: 353.4 kB / 482.1 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00026/0.4849, allocations: 142.5 kB / 482.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/0.4869, allocations: 0.8313 MB / 483.1 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.4869, allocations: 15.94 kB / 483.1 MB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.4869, allocations: 0 / 483.1 MB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.4869, allocations: 7.984 kB / 483.1 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004772/0.4917, allocations: 2.316 MB / 485.5 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.4917, allocations: 12 kB / 485.5 MB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005922/0.4923, allocations: 127.8 kB / 485.6 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004674/0.4928, allocations: 141.2 kB / 485.7 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.458e-05/0.4928, allocations: 22.94 kB / 485.8 MB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004873/0.4977, allocations: 4.785 MB / 490.5 MB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.4977, allocations: 11.94 kB / 490.6 MB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00275/0.5004, allocations: 1.293 MB / 491.8 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006977/0.5011, allocations: 296 kB / 492.1 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.5013, allocations: 16 kB / 492.2 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006413/0.5019, allocations: 39.97 kB / 492.2 MB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.5021, allocations: 68.36 kB / 492.3 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.487e-05/0.5021, allocations: 23.98 kB / 492.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001421/0.5035, allocations: 0.8781 MB / 493.2 MB, free: 11.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5035, allocations: 0 / 493.2 MB, free: 11.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001468/0.505, allocations: 331.9 kB / 493.5 MB, free: 11.47 MB / 398.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.003011/0.508, allocations: 1.889 MB / 495.4 MB, free: 9.492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.5102, allocations: 1.096 MB / 496.5 MB, free: 8.359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5102, allocations: 0 / 496.5 MB, free: 8.359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.5113, allocations: 0.6836 MB / 497.2 MB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.5131, allocations: 370.4 kB / 497.5 MB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0229/0.536, allocations: 11.72 MB / 0.4973 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.537, allocations: 1.21 MB / 0.4985 GB, free: 9.633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007192/0.5377, allocations: 175.6 kB / 0.4986 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008807/0.5386, allocations: 0.6125 MB / 0.4992 GB, free: 8.844 MB / 414.1 MB Notification: Performance of SimCode: time 1.794e-06/0.5386, allocations: 3.938 kB / 0.4992 GB, free: 8.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.086/0.6246, allocations: 31.42 MB / 0.5299 GB, free: 9.742 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.52, allocations: 7.984 kB / 0.5299 GB, free: 9.734 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.76695140893571]