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.001772/0.001772, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001941/0.001941, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.474/1.474, allocations: 207.6 MB / 235.3 MB, free: 10 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.001763/0.001763, allocations: 55.91 kB / 347.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2672, allocations: 49.16 MB / 396.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01068/0.2779, allocations: 12.18 MB / 408.5 MB, free: 252 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006756/0.2846, allocations: 3.321 MB / 411.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.2865, allocations: 43.44 kB / 411.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.2886, allocations: 0.6949 MB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002505/0.2911, allocations: 0.7846 MB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.2921, allocations: 399.8 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003458/0.2956, allocations: 2.419 MB / 416.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.2967, allocations: 0.6556 MB / 416.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.2982, allocations: 0.9342 MB / 417.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001514/0.2997, allocations: 0.9792 MB / 418.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003091/0.3, allocations: 228.7 kB / 419 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000657/0.3007, allocations: 271.1 kB / 419.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003906/0.3011, allocations: 460.8 kB / 419.7 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001154/0.3022, allocations: 1.09 MB / 420.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003384/0.3056, allocations: 2.838 MB / 423.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3056, allocations: 0 / 423.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3056, allocations: 1.375 kB / 423.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.768e-05/0.3057, allocations: 4 kB / 423.6 MB, free: 6.07 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.00544/0.3111, allocations: 2.13 MB / 425.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.3112, allocations: 13.58 kB / 425.8 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003162/0.3115, allocations: 233.5 kB / 426 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/0.3126, allocations: 292.3 kB / 426.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/0.3148, allocations: 1.041 MB / 427.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.3149, allocations: 124.8 kB / 427.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002237/0.3151, allocations: 156.8 kB / 427.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/0.3178, allocations: 1.5 MB / 429.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-05/0.3179, allocations: 15.94 kB / 429.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.318, allocations: 64 kB / 429.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.585e-05/0.318, allocations: 36 kB / 429.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/0.3202, allocations: 1.053 MB / 430.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009381/0.3296, allocations: 6.101 MB / 436.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.3312, allocations: 0.5734 MB / 437 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009665/0.3321, allocations: 430.5 kB / 437.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.546e-05/0.3322, allocations: 4.656 kB / 437.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.3322, allocations: 39.22 kB / 437.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.806e-06/0.3322, allocations: 4 kB / 437.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005859/0.3381, allocations: 2.177 MB / 439.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.114e-05/0.3382, allocations: 111.5 kB / 439.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002092/0.3403, allocations: 1.31 MB / 441 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.566e-05/0.3403, allocations: 37.7 kB / 441.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000716/0.341, allocations: 0.8671 MB / 441.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.3413, allocations: 273.7 kB / 442.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/0.3416, allocations: 210.8 kB / 442.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3418, allocations: 345.9 kB / 442.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/0.3424, allocations: 286.5 kB / 443 MB, free: 3.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009682/0.3433, allocations: 0.7424 MB / 443.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.345, allocations: 1.081 MB / 444.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.345, allocations: 4 kB / 444.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00263/0.3476, allocations: 1.272 MB / 446.1 MB, free: 428 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.3476, allocations: 12 kB / 446.1 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3e-05/0.3477, allocations: 16 kB / 446.1 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005578/0.3482, allocations: 138.9 kB / 446.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008713/0.3491, allocations: 255.7 kB / 446.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004414/0.3535, allocations: 4.328 MB / 450.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.3551, allocations: 63.86 kB / 450.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.3553, allocations: 52.12 kB / 451 MB, free: 11.21 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.0007653/0.356, allocations: 361.4 kB / 451.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.3563, allocations: 147.1 kB / 451.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.3582, allocations: 0.8218 MB / 452.3 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.3582, allocations: 11.92 kB / 452.3 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3582, allocations: 4 kB / 452.3 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3582, allocations: 0 / 452.3 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/0.3626, allocations: 2.293 MB / 454.6 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.3626, allocations: 4 kB / 454.6 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006019/0.3632, allocations: 127.9 kB / 454.7 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004832/0.3637, allocations: 138.8 kB / 454.9 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-05/0.3637, allocations: 19.98 kB / 454.9 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004545/0.3683, allocations: 4.484 MB / 459.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.3683, allocations: 4 kB / 459.4 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.3708, allocations: 1.305 MB / 460.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006824/0.3715, allocations: 211 kB / 460.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.3717, allocations: 20 kB / 460.9 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006382/0.3723, allocations: 39.95 kB / 460.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.3725, allocations: 64.42 kB / 461 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/0.3725, allocations: 31.97 kB / 461 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001363/0.3739, allocations: 0.8781 MB / 461.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3739, allocations: 0 / 461.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001245/0.3751, allocations: 324 kB / 462.2 MB, free: 15.38 MB / 382.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.002786/0.3779, allocations: 1.877 MB / 464.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.3799, allocations: 1.085 MB / 465.2 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3799, allocations: 0 / 465.2 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.381, allocations: 0.6956 MB / 465.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/0.3828, allocations: 370.3 kB / 466.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/0.4021, allocations: 11.71 MB / 478 MB, free: 14.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009948/0.4031, allocations: 1.217 MB / 479.2 MB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007268/0.4039, allocations: 175.6 kB / 479.3 MB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007753/0.4046, allocations: 0.6125 MB / 480 MB, free: 12.75 MB / 398.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4046, allocations: 0 / 480 MB, free: 12.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08345/0.4881, allocations: 32.2 MB / 0.5002 GB, free: 12.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/15.79, allocations: 7.891 kB / 0.5002 GB, free: 12.43 MB / 430.1 MB " [Timeout remaining time 644] (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: 18.93224857599853]