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.001317/0.001317, allocations: 113 kB / 18.49 MB, free: 4.539 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.00139/0.00139, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.429/1.429, allocations: 230.6 MB / 254.8 MB, free: 15.07 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 51.92 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1077, allocations: 53.33 MB / 427 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.2106/0.3183, allocations: 11.8 MB / 438.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006318/0.3246, allocations: 3.26 MB / 442.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002039/0.3266, allocations: 39.69 kB / 442.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002031/0.3287, allocations: 0.677 MB / 442.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002594/0.3313, allocations: 0.7216 MB / 443.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.3323, allocations: 401.4 kB / 443.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00317/0.3355, allocations: 2.239 MB / 446.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.3365, allocations: 0.6525 MB / 446.8 MB, free: 340 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001843/0.3384, allocations: 0.874 MB / 447.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001305/0.3397, allocations: 0.9147 MB / 448.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002958/0.34, allocations: 216.9 kB / 448.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004973/0.3405, allocations: 253.4 kB / 449.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003949/0.3408, allocations: 432.3 kB / 449.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.342, allocations: 1.017 MB / 450.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003941/0.3459, allocations: 2.694 MB / 453.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3459, allocations: 1.125 kB / 453.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3459, allocations: 0 / 453.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.064e-05/0.346, allocations: 0 / 453.2 MB, free: 13.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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00464/0.3506, allocations: 2.12 MB / 455.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3507, allocations: 9.719 kB / 455.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.2e-05/0.3507, allocations: 40.89 kB / 455.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002772/0.351, allocations: 218.3 kB / 455.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008775/0.3519, allocations: 269.5 kB / 455.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.3538, allocations: 1.045 MB / 456.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.3e-05/0.3539, allocations: 124.9 kB / 457 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002155/0.3541, allocations: 159.2 kB / 457.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/0.3566, allocations: 1.482 MB / 458.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.309e-05/0.3567, allocations: 16.72 kB / 458.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.3568, allocations: 63.58 kB / 458.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.3568, allocations: 38.5 kB / 458.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001861/0.3587, allocations: 0.9772 MB / 459.7 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009104/0.3678, allocations: 6.545 MB / 466.3 MB, free: 4.031 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008161/0.3686, allocations: 383.9 kB / 466.7 MB, free: 3.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004433/0.369, allocations: 198.7 kB / 466.9 MB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.3691, allocations: 10.02 kB / 466.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005415/0.3696, allocations: 269.1 kB / 467.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.475e-06/0.3696, allocations: 4 kB / 467.1 MB, free: 3.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00376/0.3734, allocations: 1.782 MB / 468.9 MB, free: 2.305 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.3735, allocations: 161.9 kB / 469.1 MB, free: 2.117 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.3754, allocations: 1.278 MB / 470.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.738e-05/0.3755, allocations: 41.55 kB / 470.4 MB, free: 1.355 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007822/0.3763, allocations: 0.8911 MB / 471.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.3764, allocations: 214.3 kB / 471.5 MB, free: 384 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/0.3768, allocations: 224.5 kB / 471.7 MB, free: 240 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002217/0.377, allocations: 368.1 kB / 472.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.3774, allocations: 225.2 kB / 472.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009385/0.3784, allocations: 0.8024 MB / 473.1 MB, free: 14.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.3799, allocations: 1.117 MB / 474.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.949e-06/0.3799, allocations: 5.656 kB / 474.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00217/0.382, allocations: 1.173 MB / 475.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.54e-05/0.3821, allocations: 46.94 kB / 475.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.3821, allocations: 18.91 kB / 475.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002524/0.3824, allocations: 69.11 kB / 475.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/0.3831, allocations: 263.2 kB / 475.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002243/0.3854, allocations: 2.776 MB / 478.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.3865, allocations: 69.11 kB / 478.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.3866, allocations: 63.84 kB / 478.7 MB, free: 10.12 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.0006447/0.3873, allocations: 354.2 kB / 479 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3874, allocations: 145.5 kB / 479.2 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.3885, allocations: 0.5457 MB / 479.7 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.3885, allocations: 5.562 kB / 479.7 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3885, allocations: 5.219 kB / 479.7 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.3885, allocations: 3.984 kB / 479.7 MB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002951/0.3914, allocations: 1.873 MB / 481.6 MB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.3914, allocations: 3.969 kB / 481.6 MB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004239/0.3919, allocations: 103.3 kB / 481.7 MB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001495/0.392, allocations: 52.23 kB / 481.8 MB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-05/0.392, allocations: 17.55 kB / 481.8 MB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002212/0.3943, allocations: 2.742 MB / 484.5 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3943, allocations: 3.594 kB / 484.5 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.3959, allocations: 0.9301 MB / 485.4 MB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000508/0.3964, allocations: 260.2 kB / 485.7 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3965, allocations: 19.98 kB / 485.7 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.397, allocations: 27.98 kB / 485.7 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.3972, allocations: 59.81 kB / 485.8 MB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.3972, allocations: 21.06 kB / 485.8 MB, free: 4.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001301/0.3985, allocations: 0.85 MB / 486.7 MB, free: 3.156 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3985, allocations: 0 / 486.7 MB, free: 3.156 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00138/0.3999, allocations: 304 kB / 487 MB, free: 2.859 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.002066/0.4019, allocations: 1.515 MB / 488.5 MB, free: 1.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.4037, allocations: 0.8932 MB / 489.4 MB, free: 348 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4037, allocations: 0 / 489.4 MB, free: 348 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008062/0.4046, allocations: 463.3 kB / 489.8 MB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.406, allocations: 347.5 kB / 490.2 MB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/0.423, allocations: 10.92 MB / 0.4894 GB, free: 3.812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009947/0.424, allocations: 1.178 MB / 0.4905 GB, free: 2.602 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006882/0.4247, allocations: 171.3 kB / 0.4907 GB, free: 2.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007284/0.4254, allocations: 0.5657 MB / 0.4912 GB, free: 1.863 MB / 398.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4254, allocations: 0 / 0.4912 GB, free: 1.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07837/0.5038, allocations: 28.05 MB / 0.5186 GB, free: 6.188 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.66, allocations: 11.38 kB / 0.5186 GB, free: 6.18 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.076984303013887]