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.0007925/0.0007925, allocations: 76.36 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007803/0.0007803, allocations: 160.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8772/0.8772, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.072e-05/1.21e-05, allocations: 3.266 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008016/0.008028, allocations: 10.58 MB / 335.1 MB, free: 5.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005058/0.01309, allocations: 3.137 MB / 338.2 MB, free: 2.086 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009461/0.01403, allocations: 47.75 kB / 338.3 MB, free: 2.039 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.01527, allocations: 0.6477 MB / 338.9 MB, free: 1.387 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00118/0.01645, allocations: 0.8141 MB / 339.8 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005492/0.017, allocations: 411.4 kB / 340.2 MB, free: 164 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002118/0.01912, allocations: 2.512 MB / 342.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006324/0.01975, allocations: 0.6031 MB / 343.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001118/0.02087, allocations: 1.411 MB / 344.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005507/0.02142, allocations: 0.7087 MB / 345.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.0216, allocations: 228 kB / 345.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.02187, allocations: 271.9 kB / 345.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.02208, allocations: 466.2 kB / 346.3 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004742/0.02255, allocations: 0.7404 MB / 347.1 MB, free: 9.176 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.02447, allocations: 2.831 MB / 349.9 MB, free: 6.336 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.02448, allocations: 7.875 kB / 349.9 MB, free: 6.328 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.02448, allocations: 0 / 349.9 MB, free: 6.328 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.838e-05/0.0245, allocations: 0 / 349.9 MB, free: 6.328 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.002057/0.02656, allocations: 2.114 MB / 352 MB, free: 4.172 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.02659, allocations: 15.98 kB / 352 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001696/0.02676, allocations: 224.1 kB / 352.3 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004356/0.0272, allocations: 291.5 kB / 352.5 MB, free: 3.641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.02833, allocations: 1.051 MB / 353.6 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.22e-05/0.02838, allocations: 119.5 kB / 353.7 MB, free: 2.426 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.02852, allocations: 160.3 kB / 353.9 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.03026, allocations: 1.609 MB / 355.5 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.03029, allocations: 11.94 kB / 355.5 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.441e-05/0.03037, allocations: 60 kB / 355.5 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.03039, allocations: 40 kB / 355.6 MB, free: 476 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.03162, allocations: 1.041 MB / 356.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004345/0.03597, allocations: 5.65 MB / 362.3 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.03706, allocations: 0.5701 MB / 362.8 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/0.03759, allocations: 426.7 kB / 363.3 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.119e-05/0.03762, allocations: 8.656 kB / 363.3 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.03764, allocations: 43.16 kB / 363.3 MB, free: 8.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 1.713e-06/0.03764, allocations: 0 / 363.3 MB, free: 8.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.002638/0.04028, allocations: 2.169 MB / 365.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.04032, allocations: 115.5 kB / 365.6 MB, free: 6.074 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.04138, allocations: 1.325 MB / 366.9 MB, free: 4.734 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.04142, allocations: 45.69 kB / 367 MB, free: 4.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/0.04178, allocations: 0.8594 MB / 367.8 MB, free: 3.816 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.0419, allocations: 277.6 kB / 368.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.04206, allocations: 202.8 kB / 368.3 MB, free: 3.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.817e-05/0.04215, allocations: 353.9 kB / 368.6 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.04249, allocations: 278.5 kB / 368.9 MB, free: 2.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007618/0.04325, allocations: 0.7927 MB / 369.7 MB, free: 1.695 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009165/0.04417, allocations: 1.081 MB / 370.8 MB, free: 416 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.04418, allocations: 4 kB / 370.8 MB, free: 412 kB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001326/0.0455, allocations: 1.268 MB / 372.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.04552, allocations: 12 kB / 372.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.04553, allocations: 16 kB / 372.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000286/0.04582, allocations: 142.8 kB / 372.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.04624, allocations: 255.6 kB / 372.5 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/0.0487, allocations: 4.305 MB / 376.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/0.04911, allocations: 55.97 kB / 376.8 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.04915, allocations: 52 kB / 376.9 MB, free: 9.938 MB / 346.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.0003576/0.04951, allocations: 357.3 kB / 377.2 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.04962, allocations: 147.1 kB / 377.4 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009907/0.05061, allocations: 0.8257 MB / 378.2 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.05061, allocations: 12 kB / 378.2 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.05062, allocations: 0 / 378.2 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.05062, allocations: 7.922 kB / 378.2 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.05279, allocations: 2.13 MB / 380.4 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.0528, allocations: 4.062 kB / 380.4 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/0.05309, allocations: 131.8 kB / 380.5 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002379/0.05332, allocations: 126.5 kB / 380.6 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.05335, allocations: 20 kB / 380.6 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002464/0.05581, allocations: 4.463 MB / 385.1 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.05582, allocations: 11.88 kB / 385.1 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.0572, allocations: 1.285 MB / 386.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.05748, allocations: 211.1 kB / 386.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.511e-05/0.05757, allocations: 19.94 kB / 386.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.05787, allocations: 39.97 kB / 386.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.609e-05/0.05796, allocations: 64.33 kB / 386.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.05798, allocations: 23.94 kB / 386.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007741/0.05876, allocations: 0.8781 MB / 387.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05876, allocations: 0 / 387.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007314/0.05949, allocations: 335.9 kB / 387.9 MB, free: 14.31 MB / 362.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.001635/0.06113, allocations: 1.884 MB / 389.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.06252, allocations: 1.084 MB / 390.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.06252, allocations: 0 / 390.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006363/0.06316, allocations: 0.6921 MB / 391.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009761/0.06413, allocations: 374.4 kB / 392 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/0.07648, allocations: 11.63 MB / 403.6 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.07691, allocations: 0.6341 MB / 404.2 MB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006595/0.07757, allocations: 171.6 kB / 404.4 MB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004832/0.07805, allocations: 0.6175 MB / 405 MB, free: 12.34 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.07805, allocations: 0 / 405 MB, free: 12.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0477/0.1258, allocations: 33.72 MB / 438.7 MB, free: 10.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.045/9.171, allocations: 8.062 kB / 438.7 MB, free: 10.93 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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] "" 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.58824598416686]