Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001367/0.001367, allocations: 107.6 kB / 21.18 MB, free: 460 kB / 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.001532/0.001532, allocations: 218.8 kB / 24.48 MB, free: 3.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 58.58 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2731, allocations: 49.16 MB / 396.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01176/0.2849, allocations: 10.49 MB / 406.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007311/0.2922, allocations: 3.143 MB / 410 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002257/0.2945, allocations: 38.84 kB / 410 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.2967, allocations: 0.6407 MB / 410.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003045/0.2997, allocations: 0.7867 MB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.3009, allocations: 409 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003937/0.3048, allocations: 2.416 MB / 414.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001182/0.306, allocations: 0.6089 MB / 414.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.3077, allocations: 0.9335 MB / 415.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.309, allocations: 0.8471 MB / 416.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003339/0.3094, allocations: 228.6 kB / 416.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006991/0.3101, allocations: 267.2 kB / 417.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004077/0.3105, allocations: 465.1 kB / 417.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001126/0.3116, allocations: 0.8717 MB / 418.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003979/0.3156, allocations: 2.862 MB / 421.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3156, allocations: 4 kB / 421.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3156, allocations: 0 / 421.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.394e-05/0.3157, allocations: 3.984 kB / 421.3 MB, free: 8.379 MB / 334.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.005051/0.3207, allocations: 2.128 MB / 423.5 MB, free: 6.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3208, allocations: 13.39 kB / 423.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002871/0.3211, allocations: 221.4 kB / 423.7 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.3221, allocations: 296 kB / 424 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002284/0.3243, allocations: 1.049 MB / 425 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.3245, allocations: 117.4 kB / 425.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002272/0.3247, allocations: 165.2 kB / 425.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002812/0.3275, allocations: 1.6 MB / 426.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.348e-05/0.3276, allocations: 11.95 kB / 426.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.3277, allocations: 64 kB / 427 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.921e-05/0.3277, allocations: 39.94 kB / 427 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002081/0.3298, allocations: 1.049 MB / 428.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009547/0.3393, allocations: 5.637 MB / 433.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.3409, allocations: 0.5634 MB / 434.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009413/0.3418, allocations: 426.5 kB / 434.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.3419, allocations: 8.656 kB / 434.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.3419, allocations: 39.22 kB / 434.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 3.076e-06/0.3419, allocations: 3.938 kB / 434.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005621/0.3475, allocations: 2.174 MB / 436.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.173e-05/0.3476, allocations: 111.5 kB / 437 MB, free: 9.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002169/0.3498, allocations: 1.341 MB / 438.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.061e-05/0.3499, allocations: 33.7 kB / 438.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007798/0.3507, allocations: 0.871 MB / 439.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.3509, allocations: 277.6 kB / 439.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003043/0.3512, allocations: 206.8 kB / 439.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.3514, allocations: 349.9 kB / 440.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000601/0.352, allocations: 286.5 kB / 440.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.3531, allocations: 0.781 MB / 441.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.3549, allocations: 1.088 MB / 442.2 MB, free: 4.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.487e-06/0.3549, allocations: 8 kB / 442.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002721/0.3576, allocations: 1.272 MB / 443.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.3577, allocations: 12 kB / 443.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/0.3577, allocations: 20 kB / 443.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005722/0.3582, allocations: 135 kB / 443.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008829/0.3591, allocations: 259.5 kB / 443.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004264/0.3634, allocations: 4.301 MB / 448.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.3646, allocations: 59.86 kB / 448.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.3647, allocations: 56 kB / 448.4 MB, free: 13.63 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.0006856/0.3654, allocations: 353.5 kB / 448.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.3656, allocations: 147.1 kB / 448.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.3674, allocations: 0.8256 MB / 449.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.3674, allocations: 15.92 kB / 449.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3674, allocations: 0 / 449.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3675, allocations: 0 / 449.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004004/0.3715, allocations: 2.122 MB / 451.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.3715, allocations: 0 / 451.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005647/0.372, allocations: 135.8 kB / 451.9 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004381/0.3725, allocations: 138.9 kB / 452.1 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.636e-05/0.3725, allocations: 23.94 kB / 452.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004576/0.3771, allocations: 4.461 MB / 456.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.3771, allocations: 7.938 kB / 456.6 MB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.3796, allocations: 1.297 MB / 457.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006877/0.3803, allocations: 218.9 kB / 458.1 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.3804, allocations: 23.98 kB / 458.1 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/0.3811, allocations: 35.97 kB / 458.1 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.3812, allocations: 64.28 kB / 458.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.094e-05/0.3812, allocations: 23.98 kB / 458.2 MB, free: 3.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001321/0.3826, allocations: 0.8781 MB / 459.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3826, allocations: 0 / 459.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001256/0.3838, allocations: 328 kB / 459.4 MB, free: 1.988 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.00285/0.3867, allocations: 1.889 MB / 461.3 MB, free: 16 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.3887, allocations: 1.085 MB / 462.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/0.3887, allocations: 4 kB / 462.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.3898, allocations: 0.6872 MB / 463.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.3915, allocations: 365.1 kB / 463.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02005/0.4116, allocations: 11.72 MB / 475.2 MB, free: 1.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00072/0.4123, allocations: 0.6302 MB / 475.8 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007123/0.413, allocations: 171.6 kB / 476 MB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007872/0.4138, allocations: 0.6126 MB / 476.6 MB, free: 15.93 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4138, allocations: 0 / 476.6 MB, free: 15.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.087/0.5008, allocations: 33.69 MB / 0.4983 GB, free: 14.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.43, allocations: 15.73 kB / 0.4983 GB, free: 14.11 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.621748805977404]