Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001192/0.001192, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001185/0.001185, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8859/0.8859, allocations: 173.3 MB / 200.4 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.466e-05/1.618e-05, allocations: 5.516 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008504/0.00852, allocations: 10.22 MB / 328.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003949/0.01247, allocations: 3.067 MB / 331.7 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005566/0.01303, allocations: 47.75 kB / 331.8 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.0141, allocations: 0.6206 MB / 332.4 MB, free: 8.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008865/0.01498, allocations: 0.7558 MB / 333.1 MB, free: 7.559 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004619/0.01545, allocations: 403.4 kB / 333.5 MB, free: 7.164 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.01703, allocations: 2.353 MB / 335.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006544/0.01768, allocations: 0.5989 MB / 336.5 MB, free: 4.152 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009748/0.01866, allocations: 1.309 MB / 337.8 MB, free: 2.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005646/0.01922, allocations: 0.6542 MB / 338.5 MB, free: 2.184 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.01938, allocations: 220 kB / 338.7 MB, free: 1.969 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002566/0.01964, allocations: 244 kB / 338.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002068/0.01984, allocations: 446.3 kB / 339.3 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000434/0.02028, allocations: 0.6937 MB / 340 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001604/0.02188, allocations: 2.687 MB / 342.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.02189, allocations: 4 kB / 342.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.02189, allocations: 0 / 342.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.0219, allocations: 0 / 342.7 MB, free: 13.89 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002161/0.02406, allocations: 2.017 MB / 344.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.02411, allocations: 12.92 kB / 344.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001754/0.02429, allocations: 220.1 kB / 345 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004242/0.02471, allocations: 271.5 kB / 345.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.02586, allocations: 0.964 MB / 346.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.822e-05/0.02592, allocations: 115.5 kB / 346.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.02606, allocations: 160.3 kB / 346.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.02765, allocations: 1.588 MB / 348.1 MB, free: 8.379 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.711e-05/0.02769, allocations: 15.89 kB / 348.1 MB, free: 8.363 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-05/0.02777, allocations: 64 kB / 348.1 MB, free: 8.301 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.02779, allocations: 40 kB / 348.2 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.02899, allocations: 0.9668 MB / 349.1 MB, free: 7.289 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004903/0.03389, allocations: 5.951 MB / 355.1 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005271/0.03442, allocations: 376.9 kB / 355.5 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.03469, allocations: 198.3 kB / 355.7 MB, free: 424 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.03472, allocations: 8.5 kB / 355.7 MB, free: 416 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003536/0.03507, allocations: 333 kB / 356 MB, free: 48 kB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.653e-06/0.03507, allocations: 0 / 356 MB, free: 48 kB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002131/0.0372, allocations: 1.56 MB / 357.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.769e-05/0.03728, allocations: 166.7 kB / 357.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.03841, allocations: 1.308 MB / 359 MB, free: 12.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.03844, allocations: 41.7 kB / 359.1 MB, free: 12.88 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004675/0.03891, allocations: 0.8856 MB / 359.9 MB, free: 11.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.03903, allocations: 218.2 kB / 360.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.03921, allocations: 214.8 kB / 360.4 MB, free: 11.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.03934, allocations: 353.9 kB / 360.7 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.03964, allocations: 256.2 kB / 361 MB, free: 10.95 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000592/0.04023, allocations: 0.9327 MB / 361.9 MB, free: 9.715 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008786/0.04111, allocations: 1.118 MB / 363 MB, free: 8.328 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.04112, allocations: 8 kB / 363 MB, free: 8.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001405/0.04252, allocations: 1.205 MB / 364.2 MB, free: 7.086 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.04257, allocations: 40.67 kB / 364.3 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.04258, allocations: 20 kB / 364.3 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001693/0.04275, allocations: 69.62 kB / 364.4 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.04318, allocations: 263.6 kB / 364.6 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/0.04448, allocations: 2.57 MB / 367.2 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.0449, allocations: 72.2 kB / 367.3 MB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.04495, allocations: 60 kB / 367.3 MB, free: 3.766 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003442/0.0453, allocations: 357.3 kB / 367.7 MB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.685e-05/0.04539, allocations: 135.2 kB / 367.8 MB, free: 3.273 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006441/0.04604, allocations: 0.559 MB / 368.4 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.04604, allocations: 4 kB / 368.4 MB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.04604, allocations: 0 / 368.4 MB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.04605, allocations: 0 / 368.4 MB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.04772, allocations: 1.705 MB / 370.1 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.04772, allocations: 7.938 kB / 370.1 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.04795, allocations: 103.9 kB / 370.2 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.901e-05/0.04804, allocations: 45.7 kB / 370.2 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.04806, allocations: 16 kB / 370.2 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.04928, allocations: 2.535 MB / 372.8 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.04928, allocations: 7.938 kB / 372.8 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008351/0.05011, allocations: 0.9195 MB / 373.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.05034, allocations: 183.1 kB / 373.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-05/0.05042, allocations: 20.06 kB / 373.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002675/0.05069, allocations: 35.97 kB / 373.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-05/0.05077, allocations: 55.8 kB / 374 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.05079, allocations: 20 kB / 374 MB, free: 12.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007533/0.05154, allocations: 0.85 MB / 374.8 MB, free: 11.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.05154, allocations: 4 kB / 374.9 MB, free: 11.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006668/0.05221, allocations: 304 kB / 375.2 MB, free: 11.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001178/0.05338, allocations: 1.499 MB / 376.6 MB, free: 9.902 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000941/0.05433, allocations: 0.925 MB / 377.6 MB, free: 8.934 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.05433, allocations: 4 kB / 377.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005746/0.0549, allocations: 459.6 kB / 378 MB, free: 8.457 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008838/0.05579, allocations: 327.3 kB / 378.3 MB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.06678, allocations: 10.97 MB / 389.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.06719, allocations: 0.5966 MB / 389.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003485/0.06754, allocations: 167.3 kB / 390.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/0.06798, allocations: 0.5667 MB / 390.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.06798, allocations: 3.938 kB / 390.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04292/0.1109, allocations: 30.1 MB / 420.7 MB, free: 13.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/7.911, allocations: 7.672 kB / 420.8 MB, free: 13.2 MB / 394.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 10.850859846919775]