Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001316/0.001316, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001575/0.001575, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.486/1.486, allocations: 230.6 MB / 254.1 MB, free: 15.09 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_QuasiStatic,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1284, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.2383/0.3666, allocations: 11.82 MB / 438.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005998/0.3726, allocations: 3.255 MB / 441.4 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001784/0.3744, allocations: 43.34 kB / 441.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001907/0.3763, allocations: 0.6737 MB / 442.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002376/0.3787, allocations: 0.7238 MB / 442.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009874/0.3797, allocations: 397.7 kB / 443.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002859/0.3825, allocations: 2.244 MB / 445.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009549/0.3835, allocations: 0.6501 MB / 446.1 MB, free: 368 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.3853, allocations: 0.8761 MB / 447 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.3867, allocations: 0.9066 MB / 447.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003014/0.387, allocations: 220.9 kB / 448.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005983/0.3876, allocations: 257.2 kB / 448.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004301/0.388, allocations: 431.7 kB / 448.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.3892, allocations: 1.016 MB / 449.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003678/0.3929, allocations: 2.691 MB / 452.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3929, allocations: 0 / 452.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3929, allocations: 1.062 kB / 452.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.536e-05/0.393, allocations: 0 / 452.5 MB, free: 13.4 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.004433/0.3974, allocations: 2.114 MB / 454.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3975, allocations: 10.59 kB / 454.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003081/0.3978, allocations: 222.8 kB / 454.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008934/0.3987, allocations: 265.6 kB / 455.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.4007, allocations: 1.054 MB / 456.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.599e-05/0.4008, allocations: 116 kB / 456.3 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002216/0.401, allocations: 158.6 kB / 456.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/0.4036, allocations: 1.491 MB / 457.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.847e-05/0.4036, allocations: 6.703 kB / 457.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.4037, allocations: 72.11 kB / 458 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.36e-05/0.4038, allocations: 39.44 kB / 458 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.4057, allocations: 0.9681 MB / 459 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009402/0.4151, allocations: 6.547 MB / 465.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008747/0.416, allocations: 376.5 kB / 465.9 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004438/0.4164, allocations: 207.7 kB / 466.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.259e-05/0.4165, allocations: 5.312 kB / 466.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005517/0.417, allocations: 272.5 kB / 466.4 MB, free: 3.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.535e-06/0.417, allocations: 0 / 466.4 MB, free: 3.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003856/0.4209, allocations: 1.784 MB / 468.2 MB, free: 2.348 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.421, allocations: 161.2 kB / 468.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001952/0.423, allocations: 1.279 MB / 469.6 MB, free: 1.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.737e-05/0.423, allocations: 36.52 kB / 469.6 MB, free: 1.402 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008126/0.4238, allocations: 0.8913 MB / 470.5 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.424, allocations: 217.8 kB / 470.7 MB, free: 428 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003578/0.4244, allocations: 230.3 kB / 471 MB, free: 280 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.4246, allocations: 350.9 kB / 471.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.4251, allocations: 228.8 kB / 471.5 MB, free: 15.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000995/0.426, allocations: 0.806 MB / 472.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.4276, allocations: 1.119 MB / 473.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/0.4276, allocations: 6.094 kB / 473.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002261/0.4299, allocations: 1.171 MB / 474.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.695e-05/0.4299, allocations: 43.62 kB / 474.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/0.43, allocations: 22.94 kB / 474.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002587/0.4302, allocations: 64.64 kB / 474.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000783/0.431, allocations: 268 kB / 475 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002436/0.4334, allocations: 2.776 MB / 477.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.4347, allocations: 67.77 kB / 477.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.829e-05/0.4348, allocations: 57.62 kB / 477.9 MB, free: 10.17 MB / 382.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.0006664/0.4354, allocations: 365.9 kB / 478.3 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/0.4356, allocations: 145.9 kB / 478.4 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.4368, allocations: 0.5476 MB / 479 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4368, allocations: 5.375 kB / 479 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4368, allocations: 1.875 kB / 479 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.4368, allocations: 7.984 kB / 479 MB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.44, allocations: 1.866 MB / 480.9 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.44, allocations: 4.406 kB / 480.9 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.4405, allocations: 112.3 kB / 481 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.4406, allocations: 43.86 kB / 481 MB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.594e-05/0.4407, allocations: 15.77 kB / 481 MB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.4429, allocations: 2.745 MB / 483.8 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.4429, allocations: 4.641 kB / 483.8 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.4445, allocations: 0.9315 MB / 484.7 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000555/0.4451, allocations: 255.9 kB / 485 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.4452, allocations: 19.98 kB / 485 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000527/0.4458, allocations: 27.98 kB / 485 MB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.4459, allocations: 60.38 kB / 485.1 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.4459, allocations: 20 kB / 485.1 MB, free: 4.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001397/0.4473, allocations: 0.8461 MB / 485.9 MB, free: 3.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4473, allocations: 0 / 485.9 MB, free: 3.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001326/0.4486, allocations: 308 kB / 486.2 MB, free: 2.969 MB / 382.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.002019/0.4507, allocations: 1.509 MB / 487.7 MB, free: 1.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.4524, allocations: 0.8988 MB / 488.6 MB, free: 460 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4524, allocations: 0 / 488.6 MB, free: 460 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007556/0.4532, allocations: 462 kB / 489.1 MB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.4547, allocations: 345.2 kB / 489.4 MB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01778/0.4725, allocations: 10.92 MB / 0.4886 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.4735, allocations: 1.178 MB / 0.4898 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000697/0.4742, allocations: 175.3 kB / 0.4899 GB, free: 2.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007768/0.475, allocations: 0.5696 MB / 0.4905 GB, free: 1.98 MB / 398.1 MB Notification: Performance of SimCode: time 1.313e-06/0.475, allocations: 0 / 0.4905 GB, free: 1.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08531/0.5603, allocations: 28.02 MB / 0.5178 GB, free: 6.316 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.98, allocations: 3.266 kB / 0.5179 GB, free: 6.316 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.668724271003157]