Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002045/0.002045, allocations: 190.9 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_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_0_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.001705/0.001705, allocations: 51.91 kB / 370.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2444, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01411/0.2585, allocations: 10.55 MB / 433.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00613/0.2647, allocations: 3.105 MB / 436.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001303/0.266, allocations: 39.88 kB / 436.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001842/0.2678, allocations: 0.6401 MB / 436.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002101/0.2699, allocations: 0.7793 MB / 437.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008426/0.2708, allocations: 407.6 kB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002841/0.2736, allocations: 2.423 MB / 440.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009981/0.2746, allocations: 0.5993 MB / 441.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.2759, allocations: 0.9379 MB / 442.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.277, allocations: 0.8472 MB / 442.9 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002804/0.2773, allocations: 228 kB / 443.1 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004743/0.2778, allocations: 268 kB / 443.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003694/0.2781, allocations: 454.4 kB / 443.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008729/0.279, allocations: 0.875 MB / 444.7 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002985/0.282, allocations: 2.864 MB / 447.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.282, allocations: 0 / 447.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.282, allocations: 0 / 447.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.939e-05/0.282, allocations: 0 / 447.6 MB, free: 5.242 MB / 350.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.003892/0.2859, allocations: 2.137 MB / 449.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.286, allocations: 11.97 kB / 449.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00027/0.2862, allocations: 224.1 kB / 449.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008936/0.2871, allocations: 291.5 kB / 450.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/0.2891, allocations: 1.055 MB / 451.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.2892, allocations: 115.2 kB / 451.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002211/0.2894, allocations: 160 kB / 451.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/0.2921, allocations: 1.604 MB / 453.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.895e-05/0.2922, allocations: 11.95 kB / 453.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.2923, allocations: 60 kB / 453.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.441e-05/0.2923, allocations: 44 kB / 453.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.2944, allocations: 1.045 MB / 454.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008812/0.3032, allocations: 5.645 MB / 460 MB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.3047, allocations: 0.5695 MB / 460.5 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009627/0.3057, allocations: 422.5 kB / 460.9 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-05/0.3058, allocations: 12.64 kB / 461 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.3058, allocations: 43.22 kB / 461 MB, free: 7.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.336e-06/0.3058, allocations: 0 / 461 MB, free: 7.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005091/0.3109, allocations: 2.166 MB / 463.2 MB, free: 5.117 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.311, allocations: 119.4 kB / 463.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.3128, allocations: 1.325 MB / 464.6 MB, free: 3.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.711e-05/0.3129, allocations: 41.7 kB / 464.6 MB, free: 3.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006769/0.3135, allocations: 0.8671 MB / 465.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.3138, allocations: 269.7 kB / 465.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.314, allocations: 214.8 kB / 466 MB, free: 2.234 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.3142, allocations: 349.9 kB / 466.3 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.3148, allocations: 282.5 kB / 466.6 MB, free: 1.609 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009678/0.3158, allocations: 0.7888 MB / 467.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.3174, allocations: 1.088 MB / 468.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.3174, allocations: 4 kB / 468.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002466/0.3199, allocations: 1.264 MB / 469.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3199, allocations: 12 kB / 469.8 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/0.3199, allocations: 16.5 kB / 469.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005038/0.3204, allocations: 134.5 kB / 469.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008581/0.3213, allocations: 251.6 kB / 470.2 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004427/0.3257, allocations: 4.317 MB / 474.5 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.3268, allocations: 59.86 kB / 474.5 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.089e-05/0.3269, allocations: 64.08 kB / 474.6 MB, free: 8.816 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.0006452/0.3275, allocations: 357.4 kB / 474.9 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.3277, allocations: 143.1 kB / 475.1 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.3296, allocations: 0.8217 MB / 475.9 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.3296, allocations: 11.94 kB / 475.9 MB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-06/0.3296, allocations: 0 / 475.9 MB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3296, allocations: 3.984 kB / 475.9 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003908/0.3335, allocations: 2.125 MB / 478 MB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.3335, allocations: 4 kB / 478 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005819/0.3341, allocations: 127.8 kB / 478.2 MB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004431/0.3346, allocations: 138.9 kB / 478.3 MB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.366e-05/0.3346, allocations: 23.98 kB / 478.3 MB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004395/0.339, allocations: 4.457 MB / 482.8 MB, free: 120 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.339, allocations: 7.938 kB / 482.8 MB, free: 112 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.3414, allocations: 1.301 MB / 484.1 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005409/0.342, allocations: 218.8 kB / 484.3 MB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.3421, allocations: 20.14 kB / 484.3 MB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.3427, allocations: 35.97 kB / 484.4 MB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.3429, allocations: 72.25 kB / 484.4 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.209e-05/0.3429, allocations: 27.98 kB / 484.5 MB, free: 14.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.3442, allocations: 0.8742 MB / 485.3 MB, free: 13.49 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3442, allocations: 8 kB / 485.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001136/0.3453, allocations: 324 kB / 485.7 MB, free: 13.17 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.00278/0.3481, allocations: 1.889 MB / 487.5 MB, free: 11.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002046/0.3502, allocations: 1.089 MB / 488.6 MB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3502, allocations: 320 / 488.6 MB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3513, allocations: 0.686 MB / 489.3 MB, free: 9.348 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.3529, allocations: 361.7 kB / 489.7 MB, free: 9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01901/0.3719, allocations: 11.71 MB / 0.4896 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007727/0.3727, allocations: 0.6341 MB / 0.4903 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006596/0.3733, allocations: 175.6 kB / 0.4904 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008501/0.3742, allocations: 0.6203 MB / 0.491 GB, free: 11.12 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3742, allocations: 0 / 0.491 GB, free: 11.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/0.5068, allocations: 33.67 MB / 0.5239 GB, free: 9.871 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.63, allocations: 7.984 kB / 0.5239 GB, free: 9.863 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_4.0.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.035399544984102]