Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001327/0.001327, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00151/0.00151, allocations: 213.5 kB / 24.52 MB, free: 3.91 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.488/1.488, allocations: 230.5 MB / 258.2 MB, free: 7.781 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_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 60.09 kB / 378.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2977, allocations: 53.41 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01325/0.3109, allocations: 10.23 MB / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006583/0.3175, allocations: 3.085 MB / 445.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001157/0.3187, allocations: 39.88 kB / 445.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001729/0.3204, allocations: 0.6245 MB / 445.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00197/0.3224, allocations: 0.7251 MB / 446.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008474/0.3232, allocations: 403.5 kB / 447 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002706/0.3259, allocations: 2.246 MB / 449.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001034/0.327, allocations: 0.6498 MB / 449.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.3282, allocations: 0.8756 MB / 450.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.3293, allocations: 0.9177 MB / 451.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002571/0.3296, allocations: 216 kB / 451.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004577/0.33, allocations: 252 kB / 452.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003492/0.3304, allocations: 430.5 kB / 452.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008427/0.3312, allocations: 0.8244 MB / 453.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002817/0.334, allocations: 2.704 MB / 456.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.334, allocations: 8 kB / 456.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.334, allocations: 3.938 kB / 456.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.158e-05/0.3341, allocations: 3.938 kB / 456.1 MB, free: 14.11 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.003579/0.3376, allocations: 2.03 MB / 458.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3377, allocations: 16.03 kB / 458.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.066e-05/0.3378, allocations: 39.27 kB / 458.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002606/0.338, allocations: 224 kB / 458.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008019/0.3388, allocations: 263.6 kB / 458.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/0.3405, allocations: 0.9687 MB / 459.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.3406, allocations: 115 kB / 459.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002139/0.3408, allocations: 163.9 kB / 459.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002549/0.3434, allocations: 1.595 MB / 461.5 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.989e-05/0.3434, allocations: 11.94 kB / 461.5 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/0.3436, allocations: 60 kB / 461.6 MB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.3436, allocations: 40 kB / 461.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.3454, allocations: 0.9707 MB / 462.6 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007597/0.353, allocations: 5.948 MB / 468.5 MB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008057/0.3538, allocations: 369.4 kB / 468.9 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/0.3542, allocations: 205.1 kB / 469.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.3543, allocations: 4.438 kB / 469.1 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000548/0.3548, allocations: 328.1 kB / 469.4 MB, free: 224 kB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.505e-06/0.3548, allocations: 4 kB / 469.4 MB, free: 220 kB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003136/0.358, allocations: 1.553 MB / 471 MB, free: 14.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.3581, allocations: 162.7 kB / 471.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00173/0.3598, allocations: 1.281 MB / 472.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/0.3599, allocations: 37.7 kB / 472.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000755/0.3606, allocations: 0.9011 MB / 473.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.3608, allocations: 210.2 kB / 473.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003004/0.3611, allocations: 222.8 kB / 473.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3613, allocations: 357.9 kB / 474.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004895/0.3618, allocations: 260.2 kB / 474.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.3628, allocations: 0.9288 MB / 475.3 MB, free: 9.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.3642, allocations: 1.113 MB / 476.4 MB, free: 8.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.405e-05/0.3642, allocations: 12 kB / 476.4 MB, free: 8.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001999/0.3662, allocations: 1.205 MB / 477.7 MB, free: 7.277 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.091e-05/0.3663, allocations: 49.52 kB / 477.7 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/0.3663, allocations: 20 kB / 477.7 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002389/0.3665, allocations: 69.69 kB / 477.8 MB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007963/0.3673, allocations: 260 kB / 478 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.3696, allocations: 2.566 MB / 480.6 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009213/0.3705, allocations: 68.23 kB / 480.7 MB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/0.3706, allocations: 64 kB / 480.7 MB, free: 3.953 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.0006174/0.3712, allocations: 349.3 kB / 481.1 MB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.3714, allocations: 147 kB / 481.2 MB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.3725, allocations: 0.5514 MB / 481.8 MB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3725, allocations: 4.094 kB / 481.8 MB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3725, allocations: 0 / 481.8 MB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.3725, allocations: 7.984 kB / 481.8 MB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.3752, allocations: 1.705 MB / 483.5 MB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.3752, allocations: 4 kB / 483.5 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004302/0.3756, allocations: 103.9 kB / 483.6 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/0.3758, allocations: 46.11 kB / 483.6 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.61e-05/0.3758, allocations: 24 kB / 483.7 MB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001931/0.3777, allocations: 2.523 MB / 486.2 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.3777, allocations: 12.28 kB / 486.2 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.3792, allocations: 0.9344 MB / 487.1 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004401/0.3796, allocations: 183.1 kB / 487.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.3798, allocations: 16 kB / 487.3 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005106/0.3803, allocations: 31.97 kB / 487.4 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.3804, allocations: 59.8 kB / 487.4 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.3804, allocations: 16 kB / 487.4 MB, free: 12.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00126/0.3817, allocations: 0.85 MB / 488.3 MB, free: 11.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3817, allocations: 0 / 488.3 MB, free: 11.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001166/0.3829, allocations: 303.9 kB / 488.6 MB, free: 11.66 MB / 398.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.001918/0.3848, allocations: 1.51 MB / 490.1 MB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.3864, allocations: 0.9224 MB / 491 MB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3864, allocations: 0 / 491 MB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006913/0.3871, allocations: 461.9 kB / 491.5 MB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/0.3886, allocations: 342.2 kB / 491.8 MB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/0.4048, allocations: 11.05 MB / 0.4911 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006583/0.4054, allocations: 0.5927 MB / 0.4916 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005947/0.406, allocations: 175.3 kB / 0.4918 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007023/0.4067, allocations: 0.5696 MB / 0.4924 GB, free: 11.04 MB / 414.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4067, allocations: 0 / 0.4924 GB, free: 11.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07097/0.4777, allocations: 29.96 MB / 0.5216 GB, free: 13.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/14.54, allocations: 8.062 kB / 0.5216 GB, free: 13.49 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 21.205134422983974]