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.001754/0.001754, allocations: 110 kB / 18.49 MB, free: 4.543 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.001872/0.001872, allocations: 198.6 kB / 21.43 MB, free: 1.609 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.6 MB / 249.8 MB, free: 3.598 MB / 190.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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 47.94 kB / 366.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1231, allocations: 52.14 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01403/0.1372, allocations: 11.79 MB / 430.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007482/0.1446, allocations: 3.222 MB / 433.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002585/0.1472, allocations: 47.81 kB / 433.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002489/0.1497, allocations: 0.6752 MB / 434.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003217/0.1529, allocations: 0.7251 MB / 435 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1541, allocations: 395.5 kB / 435.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003767/0.1579, allocations: 2.257 MB / 437.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.159, allocations: 0.6454 MB / 438.2 MB, free: 8.703 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.1605, allocations: 0.8717 MB / 439.1 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.1618, allocations: 0.9139 MB / 440 MB, free: 6.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002658/0.162, allocations: 216 kB / 440.2 MB, free: 6.699 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005488/0.1626, allocations: 264 kB / 440.5 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003665/0.1629, allocations: 426.5 kB / 440.9 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.164, allocations: 1.015 MB / 441.9 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003064/0.1671, allocations: 2.693 MB / 444.6 MB, free: 2.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1671, allocations: 0 / 444.6 MB, free: 2.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1671, allocations: 0 / 444.6 MB, free: 2.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.304e-05/0.1671, allocations: 0 / 444.6 MB, free: 2.301 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003658/0.1708, allocations: 2.109 MB / 446.7 MB, free: 128 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1708, allocations: 8.031 kB / 446.7 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.205e-05/0.1709, allocations: 47.27 kB / 446.8 MB, free: 72 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1973/0.3682, allocations: 219.1 kB / 447 MB, free: 29.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009585/0.3692, allocations: 262.4 kB / 447.3 MB, free: 29.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001643/0.3708, allocations: 1.051 MB / 448.3 MB, free: 28.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/0.3709, allocations: 117.2 kB / 448.4 MB, free: 28.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/0.3711, allocations: 158 kB / 448.6 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/0.3733, allocations: 1.488 MB / 450.1 MB, free: 28.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.774e-05/0.3733, allocations: 13.33 kB / 450.1 MB, free: 28.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.3735, allocations: 65.09 kB / 450.1 MB, free: 28.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.718e-05/0.3735, allocations: 39.34 kB / 450.2 MB, free: 28.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.375, allocations: 0.9703 MB / 451.1 MB, free: 28.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007615/0.3826, allocations: 6.534 MB / 457.7 MB, free: 24.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009095/0.3836, allocations: 381.3 kB / 458.1 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.384, allocations: 203.8 kB / 458.3 MB, free: 24.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.03e-05/0.384, allocations: 12.3 kB / 458.3 MB, free: 24.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004763/0.3845, allocations: 265.2 kB / 458.5 MB, free: 24.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.525e-06/0.3845, allocations: 3.938 kB / 458.5 MB, free: 24.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00316/0.3876, allocations: 1.788 MB / 460.3 MB, free: 23.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/0.3877, allocations: 162.4 kB / 460.5 MB, free: 22.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.3893, allocations: 1.281 MB / 461.8 MB, free: 22.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/0.3894, allocations: 36.89 kB / 461.8 MB, free: 22.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000523/0.3899, allocations: 0.8912 MB / 462.7 MB, free: 21.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.39, allocations: 216.2 kB / 462.9 MB, free: 21.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000289/0.3903, allocations: 222.2 kB / 463.1 MB, free: 21.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.437e-05/0.3904, allocations: 346 kB / 463.4 MB, free: 21.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/0.3908, allocations: 231.1 kB / 463.7 MB, free: 20.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006765/0.3915, allocations: 0.8071 MB / 464.5 MB, free: 20.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.3926, allocations: 1.117 MB / 465.6 MB, free: 19.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.3926, allocations: 9.875 kB / 465.6 MB, free: 19.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001854/0.3945, allocations: 1.176 MB / 466.8 MB, free: 18.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.3945, allocations: 42.3 kB / 466.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.3946, allocations: 19.5 kB / 466.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002301/0.3948, allocations: 75.09 kB / 466.9 MB, free: 18.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007593/0.3955, allocations: 262.3 kB / 467.2 MB, free: 18.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.3969, allocations: 2.775 MB / 469.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009629/0.3978, allocations: 78 kB / 470 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-05/0.3979, allocations: 59.09 kB / 470.1 MB, free: 15.54 MB / 366.1 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.0005078/0.3984, allocations: 357.6 kB / 470.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.3986, allocations: 141.6 kB / 470.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009692/0.3995, allocations: 0.5506 MB / 471.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3995, allocations: 5.5 kB / 471.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3995, allocations: 3.203 kB / 471.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.3996, allocations: 2.672 kB / 471.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002706/0.4023, allocations: 1.871 MB / 473 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.4023, allocations: 4.625 kB / 473 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004083/0.4027, allocations: 102.1 kB / 473.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001414/0.4028, allocations: 41.2 kB / 473.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.4028, allocations: 18.8 kB / 473.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.4041, allocations: 2.746 MB / 475.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4041, allocations: 8.656 kB / 475.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.4054, allocations: 0.9233 MB / 476.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003801/0.4058, allocations: 260.7 kB / 477.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.4059, allocations: 26.45 kB / 477.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005133/0.4064, allocations: 36.56 kB / 477.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.4066, allocations: 49.77 kB / 477.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.4066, allocations: 18.91 kB / 477.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.4077, allocations: 0.8456 MB / 478.1 MB, free: 9.867 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4077, allocations: 3.938 kB / 478.1 MB, free: 9.863 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001204/0.4089, allocations: 304.2 kB / 478.4 MB, free: 9.836 MB / 366.1 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.001501/0.4104, allocations: 1.521 MB / 479.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.412, allocations: 0.8953 MB / 480.8 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.412, allocations: 5.125 kB / 480.8 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006273/0.4126, allocations: 464.3 kB / 481.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.414, allocations: 340.2 kB / 481.6 MB, free: 7.754 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/0.4266, allocations: 10.93 MB / 492.5 MB, free: 328 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008423/0.4275, allocations: 1.182 MB / 493.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006339/0.4281, allocations: 172.7 kB / 493.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007353/0.4288, allocations: 0.5657 MB / 494.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4289, allocations: 0 / 494.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06862/0.4975, allocations: 28.02 MB / 0.5102 GB, free: 2.738 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.55, allocations: 12 kB / 0.5102 GB, free: 2.727 MB / 398.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.134970360959414]