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.002033/0.002033, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001587/0.001587, allocations: 207.4 kB / 23.73 MB, free: 4.391 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.453/1.453, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.003454/0.003454, allocations: 63.89 kB / 377.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2649, allocations: 53.4 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01294/0.2778, allocations: 10.57 MB / 441.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005791/0.2836, allocations: 3.14 MB / 444.9 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.2848, allocations: 39.88 kB / 444.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001796/0.2866, allocations: 0.6439 MB / 445.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002246/0.2888, allocations: 0.7794 MB / 446.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008783/0.2897, allocations: 411.5 kB / 446.7 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002969/0.2927, allocations: 2.408 MB / 449.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.2937, allocations: 0.611 MB / 449.7 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.2951, allocations: 0.9301 MB / 450.7 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.2962, allocations: 0.8433 MB / 451.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002986/0.2965, allocations: 236 kB / 451.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005036/0.297, allocations: 264 kB / 452 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003967/0.2974, allocations: 466.3 kB / 452.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.2984, allocations: 0.8711 MB / 453.3 MB, free: 140 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003403/0.3018, allocations: 2.856 MB / 456.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3018, allocations: 0 / 456.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3018, allocations: 4 kB / 456.2 MB, free: 13.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.269e-05/0.3019, allocations: 0 / 456.2 MB, free: 13.26 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.004024/0.3059, allocations: 2.137 MB / 458.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.306, allocations: 15.92 kB / 458.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002842/0.3062, allocations: 224.1 kB / 458.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009763/0.3072, allocations: 295.5 kB / 458.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002065/0.3093, allocations: 1.048 MB / 459.9 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.3094, allocations: 119.2 kB / 460 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002216/0.3096, allocations: 163.9 kB / 460.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002788/0.3124, allocations: 1.601 MB / 461.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.304e-05/0.3125, allocations: 11.94 kB / 461.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/0.3126, allocations: 64 kB / 461.9 MB, free: 7.422 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.856e-05/0.3126, allocations: 40 kB / 461.9 MB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002156/0.3148, allocations: 1.041 MB / 462.9 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008948/0.3237, allocations: 5.645 MB / 468.6 MB, free: 404 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.3253, allocations: 0.5662 MB / 469.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009269/0.3262, allocations: 430 kB / 469.6 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.3262, allocations: 8.656 kB / 469.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.3263, allocations: 39.22 kB / 469.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.525e-06/0.3263, allocations: 0 / 469.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005005/0.3313, allocations: 2.17 MB / 471.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.3314, allocations: 115.4 kB / 471.9 MB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001852/0.3332, allocations: 1.333 MB / 473.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.3333, allocations: 41.69 kB / 473.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006634/0.3339, allocations: 0.8633 MB / 474.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/0.3341, allocations: 273.6 kB / 474.4 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.3344, allocations: 210.8 kB / 474.6 MB, free: 10.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3346, allocations: 349.9 kB / 474.9 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006028/0.3352, allocations: 282.5 kB / 475.2 MB, free: 9.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009771/0.3362, allocations: 0.7887 MB / 476 MB, free: 8.617 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.3378, allocations: 1.081 MB / 477.1 MB, free: 7.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.3378, allocations: 8 kB / 477.1 MB, free: 7.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00248/0.3403, allocations: 1.268 MB / 478.4 MB, free: 6.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.3403, allocations: 12 kB / 478.4 MB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.3403, allocations: 16.5 kB / 478.4 MB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004902/0.3408, allocations: 134.5 kB / 478.5 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008294/0.3416, allocations: 263.5 kB / 478.8 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004313/0.346, allocations: 4.309 MB / 483.1 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.347, allocations: 60.06 kB / 483.2 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.926e-05/0.3471, allocations: 63.94 kB / 483.2 MB, free: 0.8398 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.0005989/0.3477, allocations: 349.4 kB / 483.6 MB, free: 500 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.3479, allocations: 147.1 kB / 483.7 MB, free: 352 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001806/0.3497, allocations: 0.8295 MB / 484.5 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.3497, allocations: 7.938 kB / 484.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3497, allocations: 7.984 kB / 484.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.3497, allocations: 0 / 484.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003906/0.3536, allocations: 2.121 MB / 486.7 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.3536, allocations: 4 kB / 486.7 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005565/0.3542, allocations: 131.8 kB / 486.8 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004744/0.3547, allocations: 139 kB / 486.9 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/0.3547, allocations: 23.94 kB / 487 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004405/0.3591, allocations: 4.458 MB / 491.4 MB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/0.3591, allocations: 8 kB / 491.4 MB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/0.3616, allocations: 1.305 MB / 492.7 MB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000532/0.3621, allocations: 210.9 kB / 492.9 MB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.3623, allocations: 19.98 kB / 493 MB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006194/0.3629, allocations: 35.97 kB / 493 MB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.363, allocations: 64.34 kB / 493 MB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.111e-05/0.3631, allocations: 27.92 kB / 493.1 MB, free: 6.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001312/0.3644, allocations: 0.8781 MB / 494 MB, free: 5.523 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3644, allocations: 4 kB / 494 MB, free: 5.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001202/0.3656, allocations: 335.9 kB / 494.3 MB, free: 5.191 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.002867/0.3685, allocations: 1.877 MB / 496.2 MB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3705, allocations: 1.082 MB / 497.2 MB, free: 2.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3705, allocations: 0 / 497.2 MB, free: 2.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.3716, allocations: 0.69 MB / 497.9 MB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/0.3736, allocations: 367.9 kB / 498.3 MB, free: 1.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/0.3934, allocations: 11.72 MB / 0.4981 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007529/0.3941, allocations: 0.6302 MB / 0.4987 GB, free: 3.949 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007155/0.3949, allocations: 175.6 kB / 0.4988 GB, free: 3.773 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007982/0.3957, allocations: 0.6086 MB / 0.4994 GB, free: 3.164 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3957, allocations: 4 kB / 0.4994 GB, free: 3.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08543/0.4811, allocations: 33.72 MB / 0.5324 GB, free: 1.812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/14.76, allocations: 0 / 0.5324 GB, free: 1.812 MB / 446.1 MB " [Timeout remaining time 645] (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.18545730272308]