Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002091/0.002091, allocations: 215.7 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_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_1_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.001638/0.001638, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2893, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01374/0.303, allocations: 10.57 MB / 441.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006307/0.3093, allocations: 3.136 MB / 444.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.3106, allocations: 39.88 kB / 444.8 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001742/0.3123, allocations: 0.6439 MB / 445.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001909/0.3142, allocations: 0.7794 MB / 446.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000825/0.3151, allocations: 411.4 kB / 446.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002744/0.3178, allocations: 2.409 MB / 449.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.3189, allocations: 0.6071 MB / 449.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001367/0.3203, allocations: 0.9378 MB / 450.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.3214, allocations: 0.8395 MB / 451.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003022/0.3217, allocations: 232 kB / 451.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004948/0.3222, allocations: 264 kB / 451.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003818/0.3226, allocations: 462.3 kB / 452.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008609/0.3234, allocations: 0.8712 MB / 453.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002981/0.3264, allocations: 2.864 MB / 456.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.3264, allocations: 4 kB / 456.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3264, allocations: 0 / 456.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.558e-05/0.3264, allocations: 0 / 456.1 MB, free: 13.46 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.003733/0.3302, allocations: 2.133 MB / 458.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3302, allocations: 8.031 kB / 458.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000328/0.3306, allocations: 224.1 kB / 458.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008675/0.3314, allocations: 291.5 kB / 458.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.3335, allocations: 1.055 MB / 459.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.8e-05/0.3336, allocations: 119.2 kB / 459.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.3339, allocations: 159.9 kB / 460.1 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002565/0.3364, allocations: 1.604 MB / 461.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.808e-05/0.3365, allocations: 7.984 kB / 461.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.3366, allocations: 68 kB / 461.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.279e-05/0.3366, allocations: 36 kB / 461.8 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00209/0.3387, allocations: 1.041 MB / 462.9 MB, free: 6.543 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008491/0.3472, allocations: 5.649 MB / 468.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.3487, allocations: 0.5739 MB / 469.1 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009455/0.3496, allocations: 428.3 kB / 469.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.3497, allocations: 8.656 kB / 469.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/0.3497, allocations: 43.2 kB / 469.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.276e-06/0.3497, allocations: 0 / 469.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005197/0.3549, allocations: 2.166 MB / 471.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.355, allocations: 115.5 kB / 471.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/0.3569, allocations: 1.333 MB / 473.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.023e-05/0.3569, allocations: 41.7 kB / 473.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007335/0.3577, allocations: 0.8633 MB / 474.1 MB, free: 10.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.3579, allocations: 277.6 kB / 474.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.3582, allocations: 206.8 kB / 474.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3584, allocations: 353.9 kB / 474.9 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006211/0.359, allocations: 278.5 kB / 475.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009965/0.36, allocations: 0.7926 MB / 476 MB, free: 8.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001597/0.3616, allocations: 1.085 MB / 477 MB, free: 7.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.3616, allocations: 8 kB / 477 MB, free: 7.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002455/0.3641, allocations: 1.264 MB / 478.3 MB, free: 6.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.3641, allocations: 18.17 kB / 478.3 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.3641, allocations: 16 kB / 478.3 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004982/0.3646, allocations: 134.9 kB / 478.5 MB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000817/0.3654, allocations: 251.6 kB / 478.7 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00411/0.3695, allocations: 4.312 MB / 483 MB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009425/0.3705, allocations: 59.91 kB / 483.1 MB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.38e-05/0.3706, allocations: 52 kB / 483.1 MB, free: 1.047 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.0006113/0.3712, allocations: 353.6 kB / 483.5 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.3714, allocations: 151 kB / 483.6 MB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.3731, allocations: 0.8218 MB / 484.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.3731, allocations: 7.938 kB / 484.5 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3731, allocations: 7.938 kB / 484.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3732, allocations: 3.984 kB / 484.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003815/0.377, allocations: 2.126 MB / 486.6 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.377, allocations: 8 kB / 486.6 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005591/0.3775, allocations: 127.8 kB / 486.7 MB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004297/0.378, allocations: 142.8 kB / 486.9 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.378, allocations: 23.92 kB / 486.9 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004454/0.3825, allocations: 4.465 MB / 491.4 MB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.3825, allocations: 4 kB / 491.4 MB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/0.3849, allocations: 1.305 MB / 492.7 MB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005139/0.3854, allocations: 207 kB / 492.9 MB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.3856, allocations: 20 kB / 492.9 MB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005987/0.3862, allocations: 35.97 kB / 492.9 MB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.3863, allocations: 68.27 kB / 493 MB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.615e-05/0.3863, allocations: 24 kB / 493 MB, free: 6.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001275/0.3876, allocations: 0.8781 MB / 493.9 MB, free: 5.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3876, allocations: 0 / 493.9 MB, free: 5.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001163/0.3888, allocations: 335.9 kB / 494.2 MB, free: 5.391 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.002751/0.3915, allocations: 1.885 MB / 496.1 MB, free: 3.426 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.3934, allocations: 1.081 MB / 497.2 MB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3934, allocations: 0 / 497.2 MB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.3945, allocations: 0.694 MB / 497.9 MB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001535/0.396, allocations: 370.1 kB / 498.2 MB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01868/0.4147, allocations: 11.7 MB / 0.498 GB, free: 4.816 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007365/0.4154, allocations: 0.6341 MB / 0.4986 GB, free: 4.148 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007141/0.4161, allocations: 179.6 kB / 0.4988 GB, free: 3.969 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007852/0.4169, allocations: 0.6125 MB / 0.4994 GB, free: 3.355 MB / 414.1 MB Notification: Performance of SimCode: time 1.413e-06/0.4169, allocations: 0 / 0.4994 GB, free: 3.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1116/0.5285, allocations: 33.72 MB / 0.5323 GB, free: 2.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.56, allocations: 0 / 0.5323 GB, free: 2.07 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_4.1.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.019840920343995]