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.001858/0.001858, allocations: 113.1 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.00215/0.00215, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.481/1.481, 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.001602/0.001602, allocations: 43.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3901, allocations: 53.36 MB / 431.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01593/0.4061, allocations: 12.24 MB / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008834/0.4149, allocations: 3.334 MB / 446.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00223/0.4171, allocations: 43.81 kB / 446.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.4194, allocations: 0.6907 MB / 447.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003221/0.4226, allocations: 0.7833 MB / 448.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.4237, allocations: 403.5 kB / 448.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003186/0.4269, allocations: 2.419 MB / 451.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.428, allocations: 0.6539 MB / 451.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001383/0.4294, allocations: 0.9301 MB / 452.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001239/0.4306, allocations: 0.9839 MB / 453.6 MB, free: 252 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002925/0.4309, allocations: 232 kB / 453.9 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005125/0.4314, allocations: 264 kB / 454.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004299/0.4318, allocations: 462.4 kB / 454.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.433, allocations: 1.085 MB / 455.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003432/0.4364, allocations: 2.837 MB / 458.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.4364, allocations: 0 / 458.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4364, allocations: 4 kB / 458.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.406e-05/0.4365, allocations: 0 / 458.5 MB, free: 11.37 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.004012/0.4405, allocations: 2.141 MB / 460.6 MB, free: 9.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.4405, allocations: 8.031 kB / 460.6 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002737/0.4408, allocations: 224.1 kB / 460.9 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008995/0.4417, allocations: 295.4 kB / 461.1 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.4437, allocations: 1.048 MB / 462.2 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.4438, allocations: 127.2 kB / 462.3 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.444, allocations: 156 kB / 462.5 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/0.4465, allocations: 1.504 MB / 464 MB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.856e-05/0.4465, allocations: 11.95 kB / 464 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.4466, allocations: 64 kB / 464 MB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.4467, allocations: 40 kB / 464.1 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/0.4487, allocations: 1.049 MB / 465.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008769/0.4575, allocations: 6.105 MB / 471.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.4591, allocations: 0.5733 MB / 471.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009267/0.46, allocations: 430.4 kB / 472.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.4601, allocations: 12.64 kB / 472.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.4601, allocations: 43.22 kB / 472.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.645e-06/0.4601, allocations: 0 / 472.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005603/0.4657, allocations: 2.166 MB / 474.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.4658, allocations: 115.5 kB / 474.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.468, allocations: 1.31 MB / 475.9 MB, free: 9.422 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.068e-05/0.4681, allocations: 37.7 kB / 475.9 MB, free: 9.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008882/0.469, allocations: 0.8671 MB / 476.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.4692, allocations: 269.8 kB / 477 MB, free: 8.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003265/0.4696, allocations: 214.8 kB / 477.3 MB, free: 8.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002357/0.4698, allocations: 341.9 kB / 477.6 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000637/0.4704, allocations: 286.4 kB / 477.9 MB, free: 7.402 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.4716, allocations: 0.7386 MB / 478.6 MB, free: 6.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/0.4733, allocations: 1.092 MB / 479.7 MB, free: 5.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-06/0.4734, allocations: 4 kB / 479.7 MB, free: 5.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002435/0.4758, allocations: 1.257 MB / 481 MB, free: 3.875 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.4758, allocations: 16.48 kB / 481 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/0.4758, allocations: 16 kB / 481 MB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005205/0.4764, allocations: 134.5 kB / 481.1 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000842/0.4772, allocations: 259.6 kB / 481.4 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/0.4817, allocations: 4.324 MB / 485.7 MB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009488/0.4826, allocations: 59.97 kB / 485.8 MB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.685e-05/0.4827, allocations: 59.94 kB / 485.8 MB, free: 14.66 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.0007001/0.4834, allocations: 357.5 kB / 486.2 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.4836, allocations: 151 kB / 486.3 MB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.4855, allocations: 0.8295 MB / 487.1 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4855, allocations: 11.94 kB / 487.2 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4855, allocations: 128 / 487.2 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.4855, allocations: 7.984 kB / 487.2 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00393/0.4894, allocations: 2.285 MB / 489.4 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.4894, allocations: 8.094 kB / 489.5 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005688/0.49, allocations: 127.8 kB / 489.6 MB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004209/0.4904, allocations: 138.4 kB / 489.7 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-05/0.4905, allocations: 19.98 kB / 489.7 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004655/0.4951, allocations: 4.477 MB / 494.2 MB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.4951, allocations: 7.938 kB / 494.2 MB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.4974, allocations: 1.305 MB / 495.5 MB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000473/0.4979, allocations: 203 kB / 495.7 MB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001522/0.4981, allocations: 23.98 kB / 495.7 MB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/0.4987, allocations: 39.97 kB / 495.8 MB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.4988, allocations: 64.28 kB / 495.8 MB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.301e-05/0.4988, allocations: 27.98 kB / 495.9 MB, free: 4.031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.5001, allocations: 0.8742 MB / 496.7 MB, free: 3.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5001, allocations: 4 kB / 496.8 MB, free: 3.152 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001239/0.5013, allocations: 324 kB / 497.1 MB, free: 2.836 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.002926/0.5043, allocations: 1.889 MB / 499 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00208/0.5064, allocations: 1.093 MB / 0.4883 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5064, allocations: 0 / 0.4883 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.5075, allocations: 0.6949 MB / 0.489 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.5093, allocations: 356.5 kB / 0.4893 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/0.5324, allocations: 11.73 MB / 0.5008 GB, free: 2.234 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.5337, allocations: 1.21 MB / 0.502 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007276/0.5345, allocations: 175.6 kB / 0.5022 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009132/0.5354, allocations: 0.6164 MB / 0.5028 GB, free: 208 kB / 414.1 MB Notification: Performance of SimCode: time 1.773e-06/0.5354, allocations: 0 / 0.5028 GB, free: 208 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1009/0.6363, allocations: 32.22 MB / 0.5342 GB, free: 328 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.59/16.22, allocations: 8 kB / 0.5342 GB, free: 320 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 21.460229637101293]