Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001682/0.001682, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002393/0.002393, allocations: 216.2 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 63.89 kB / 377.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2833, allocations: 53.4 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01446/0.2978, allocations: 12.24 MB / 443.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006431/0.3042, allocations: 3.334 MB / 446.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001431/0.3056, allocations: 43.81 kB / 446.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.3075, allocations: 0.6907 MB / 447.5 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002236/0.3098, allocations: 0.7872 MB / 448.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008611/0.3106, allocations: 403.5 kB / 448.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00287/0.3135, allocations: 2.424 MB / 451.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.3145, allocations: 0.6461 MB / 451.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.3159, allocations: 0.9418 MB / 452.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001226/0.3172, allocations: 0.98 MB / 453.7 MB, free: 44 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003067/0.3175, allocations: 228 kB / 453.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004688/0.3179, allocations: 267.9 kB / 454.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003787/0.3183, allocations: 458.3 kB / 454.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.3194, allocations: 1.077 MB / 455.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003259/0.3226, allocations: 2.848 MB / 458.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3227, allocations: 0 / 458.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3227, allocations: 0 / 458.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.29e-05/0.3227, allocations: 4 kB / 458.5 MB, free: 11.16 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.00405/0.3267, allocations: 2.133 MB / 460.7 MB, free: 8.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.3268, allocations: 12.03 kB / 460.7 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002852/0.3271, allocations: 220.1 kB / 460.9 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008987/0.328, allocations: 291.4 kB / 461.2 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.3299, allocations: 1.055 MB / 462.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.296e-05/0.33, allocations: 119.2 kB / 462.4 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002142/0.3302, allocations: 156 kB / 462.5 MB, free: 7.098 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/0.3328, allocations: 1.504 MB / 464 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.532e-05/0.3329, allocations: 11.94 kB / 464 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.333, allocations: 68 kB / 464.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-05/0.333, allocations: 36 kB / 464.1 MB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002128/0.3352, allocations: 1.053 MB / 465.2 MB, free: 4.359 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008876/0.3441, allocations: 6.097 MB / 471.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.3456, allocations: 0.5772 MB / 471.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009287/0.3466, allocations: 426.5 kB / 472.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.617e-05/0.3466, allocations: 8.797 kB / 472.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.3467, allocations: 39.22 kB / 472.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.224e-06/0.3467, allocations: 4 kB / 472.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005121/0.3518, allocations: 2.169 MB / 474.5 MB, free: 10.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/0.3519, allocations: 115.5 kB / 474.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001909/0.3538, allocations: 1.306 MB / 475.9 MB, free: 9.238 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.516e-05/0.3538, allocations: 37.7 kB / 475.9 MB, free: 9.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000733/0.3546, allocations: 0.871 MB / 476.8 MB, free: 8.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/0.3548, allocations: 273.7 kB / 477.1 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002952/0.3551, allocations: 210.8 kB / 477.3 MB, free: 7.836 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.3553, allocations: 349.9 kB / 477.6 MB, free: 7.488 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/0.3559, allocations: 282.5 kB / 477.9 MB, free: 7.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009421/0.3568, allocations: 0.7346 MB / 478.6 MB, free: 6.266 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.3584, allocations: 1.085 MB / 479.7 MB, free: 4.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.3584, allocations: 4 kB / 479.7 MB, free: 4.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002477/0.3609, allocations: 1.264 MB / 481 MB, free: 3.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.3609, allocations: 14.66 kB / 481 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/0.361, allocations: 16 kB / 481 MB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005131/0.3615, allocations: 142.9 kB / 481.2 MB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008276/0.3623, allocations: 251.6 kB / 481.4 MB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004263/0.3666, allocations: 4.332 MB / 485.7 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.3676, allocations: 55.92 kB / 485.8 MB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.061e-05/0.3677, allocations: 59.97 kB / 485.9 MB, free: 14.48 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.0006649/0.3684, allocations: 360.8 kB / 486.2 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.3686, allocations: 151 kB / 486.4 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.3705, allocations: 0.8179 MB / 487.2 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3705, allocations: 11.94 kB / 487.2 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3705, allocations: 4 kB / 487.2 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3705, allocations: 3.984 kB / 487.2 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004392/0.3749, allocations: 2.301 MB / 489.5 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.3749, allocations: 4 kB / 489.5 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005834/0.3755, allocations: 127.9 kB / 489.6 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004684/0.3759, allocations: 138.8 kB / 489.8 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.791e-05/0.376, allocations: 20 kB / 489.8 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004675/0.3807, allocations: 4.485 MB / 494.3 MB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3807, allocations: 4 kB / 494.3 MB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.3833, allocations: 1.305 MB / 495.6 MB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006456/0.384, allocations: 215.1 kB / 495.8 MB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.3841, allocations: 16 kB / 495.8 MB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006429/0.3848, allocations: 40.16 kB / 495.8 MB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.3849, allocations: 68.27 kB / 495.9 MB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.385, allocations: 27.98 kB / 495.9 MB, free: 3.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001391/0.3863, allocations: 0.8781 MB / 496.8 MB, free: 2.953 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3863, allocations: 0 / 496.8 MB, free: 2.953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001333/0.3877, allocations: 328 kB / 497.1 MB, free: 2.633 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.003036/0.3907, allocations: 1.885 MB / 499 MB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.3929, allocations: 1.085 MB / 0.4884 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3929, allocations: 0 / 0.4884 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.394, allocations: 0.6839 MB / 0.489 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.3958, allocations: 374.9 kB / 0.4894 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01972/0.4155, allocations: 11.72 MB / 0.5009 GB, free: 2.043 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009757/0.4165, allocations: 1.213 MB / 0.502 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007638/0.4173, allocations: 171.6 kB / 0.5022 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008383/0.4181, allocations: 0.6125 MB / 0.5028 GB, free: 16 kB / 414.1 MB Notification: Performance of SimCode: time 1.783e-06/0.4181, allocations: 0 / 0.5028 GB, free: 16 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08968/0.5078, allocations: 32.21 MB / 0.5343 GB, free: 76 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.36/15.87, allocations: 3.984 kB / 0.5343 GB, free: 72 kB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.51487551000173]