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.001936/0.001936, allocations: 116 kB / 20.43 MB, free: 1.457 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.001561/0.001561, allocations: 209.3 kB / 23.74 MB, free: 4.672 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.532/1.532, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.001565/0.001565, allocations: 51.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2977, allocations: 53.36 MB / 431.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0155/0.3132, allocations: 12.26 MB / 443.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00775/0.3209, allocations: 3.319 MB / 446.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002047/0.323, allocations: 43.81 kB / 446.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00221/0.3252, allocations: 0.6907 MB / 447.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002871/0.328, allocations: 0.7833 MB / 448.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.3291, allocations: 407.5 kB / 448.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003491/0.3326, allocations: 2.417 MB / 451.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.3337, allocations: 0.65 MB / 451.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.3352, allocations: 0.934 MB / 452.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.3365, allocations: 0.9839 MB / 453.6 MB, free: 240 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002909/0.3368, allocations: 232 kB / 453.9 MB, free: 8 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005466/0.3374, allocations: 272 kB / 454.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004729/0.3378, allocations: 462.3 kB / 454.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001253/0.3391, allocations: 1.069 MB / 455.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003802/0.3429, allocations: 2.848 MB / 458.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3429, allocations: 0 / 458.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3429, allocations: 0 / 458.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.717e-05/0.3429, allocations: 0 / 458.5 MB, free: 11.36 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.005146/0.3481, allocations: 2.141 MB / 460.6 MB, free: 9.172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.3481, allocations: 12.03 kB / 460.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002998/0.3484, allocations: 220.1 kB / 460.9 MB, free: 8.934 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.3495, allocations: 295.5 kB / 461.1 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.3517, allocations: 1.048 MB / 462.2 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.3518, allocations: 123.1 kB / 462.3 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.352, allocations: 159.9 kB / 462.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.3549, allocations: 1.504 MB / 464 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.326e-05/0.3549, allocations: 11.89 kB / 464 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.3551, allocations: 68 kB / 464.1 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.428e-05/0.3551, allocations: 36 kB / 464.1 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002223/0.3573, allocations: 1.041 MB / 465.1 MB, free: 4.551 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01049/0.3678, allocations: 6.116 MB / 471.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.3694, allocations: 0.5733 MB / 471.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.3705, allocations: 430.4 kB / 472.2 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.453e-05/0.3705, allocations: 4.656 kB / 472.2 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/0.3706, allocations: 39.22 kB / 472.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.327e-06/0.3706, allocations: 0 / 472.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005994/0.3765, allocations: 2.174 MB / 474.5 MB, free: 10.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.3767, allocations: 115.5 kB / 474.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/0.3788, allocations: 1.306 MB / 475.9 MB, free: 9.414 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.002e-05/0.3788, allocations: 45.64 kB / 475.9 MB, free: 9.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008174/0.3796, allocations: 0.871 MB / 476.8 MB, free: 8.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003103/0.3799, allocations: 269.7 kB / 477.1 MB, free: 8.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.3803, allocations: 206.8 kB / 477.3 MB, free: 8.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3804, allocations: 349.9 kB / 477.6 MB, free: 7.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008228/0.3813, allocations: 286.5 kB / 477.9 MB, free: 7.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001121/0.3824, allocations: 0.7308 MB / 478.6 MB, free: 6.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.3841, allocations: 1.088 MB / 479.7 MB, free: 5.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.3841, allocations: 4 kB / 479.7 MB, free: 5.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002984/0.3871, allocations: 1.265 MB / 481 MB, free: 3.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.117e-05/0.3872, allocations: 12 kB / 481 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/0.3872, allocations: 19.94 kB / 481 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/0.3878, allocations: 126.5 kB / 481.1 MB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009529/0.3888, allocations: 263.5 kB / 481.4 MB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005275/0.394, allocations: 4.324 MB / 485.7 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.3953, allocations: 67.97 kB / 485.8 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.495e-05/0.3954, allocations: 59.97 kB / 485.8 MB, free: 14.64 MB / 398.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.0007204/0.3961, allocations: 353.3 kB / 486.2 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.3963, allocations: 147.1 kB / 486.3 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.3982, allocations: 0.8295 MB / 487.1 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.3982, allocations: 11.88 kB / 487.2 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3982, allocations: 4 kB / 487.2 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.3982, allocations: 3.984 kB / 487.2 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00453/0.4028, allocations: 2.289 MB / 489.5 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4028, allocations: 4 kB / 489.5 MB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005851/0.4034, allocations: 131.8 kB / 489.6 MB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004569/0.4038, allocations: 138.6 kB / 489.7 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.4039, allocations: 16 kB / 489.7 MB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005207/0.4091, allocations: 4.477 MB / 494.2 MB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.4091, allocations: 7.938 kB / 494.2 MB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002897/0.412, allocations: 1.293 MB / 495.5 MB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006151/0.4126, allocations: 215 kB / 495.7 MB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.4127, allocations: 20 kB / 495.7 MB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006084/0.4134, allocations: 39.97 kB / 495.8 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.4135, allocations: 64.27 kB / 495.8 MB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.4135, allocations: 20 kB / 495.9 MB, free: 4.031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.4149, allocations: 0.882 MB / 496.7 MB, free: 3.148 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4149, allocations: 4 kB / 496.7 MB, free: 3.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001317/0.4163, allocations: 324 kB / 497.1 MB, free: 2.828 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.002868/0.4191, allocations: 1.901 MB / 499 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.4212, allocations: 1.085 MB / 0.4883 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.4212, allocations: 256 / 0.4883 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.4223, allocations: 0.6939 MB / 0.489 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.424, allocations: 367.3 kB / 0.4894 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/0.444, allocations: 11.72 MB / 0.5008 GB, free: 2.227 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.445, allocations: 1.213 MB / 0.502 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007261/0.4457, allocations: 175.6 kB / 0.5022 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008227/0.4466, allocations: 0.6086 MB / 0.5027 GB, free: 204 kB / 414.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4466, allocations: 0 / 0.5027 GB, free: 204 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09207/0.5386, allocations: 32.22 MB / 0.5342 GB, free: 308 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.12/16.66, allocations: 6.578 kB / 0.5342 GB, free: 304 kB / 446.1 MB " [Timeout remaining time 643] (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: 20.368901246998576]