Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001751/0.001751, allocations: 108.8 kB / 21.22 MB, free: 0.75 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.001681/0.001681, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.468/1.468, allocations: 225.7 MB / 253.3 MB, free: 13.03 MB / 206.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_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 43.92 kB / 371.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.255, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008885/0.2639, allocations: 7.209 MB / 430.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004129/0.2681, allocations: 2.356 MB / 433 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000619/0.2687, allocations: 27.81 kB / 433 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001278/0.27, allocations: 0.5165 MB / 433.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008445/0.2708, allocations: 405 kB / 433.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003765/0.2712, allocations: 207.8 kB / 434.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001328/0.2725, allocations: 1.199 MB / 435.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005541/0.2731, allocations: 340.5 kB / 435.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006268/0.2737, allocations: 478.1 kB / 436.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005978/0.2743, allocations: 493.8 kB / 436.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.2744, allocations: 112 kB / 436.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002808/0.2747, allocations: 164 kB / 436.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.2749, allocations: 235.1 kB / 437.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005022/0.2754, allocations: 0.5443 MB / 437.7 MB, free: 288 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001656/0.277, allocations: 1.436 MB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.277, allocations: 0 / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.277, allocations: 4 kB / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.2771, allocations: 0 / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002059/0.2791, allocations: 1.202 MB / 440.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.2792, allocations: 8.031 kB / 440.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.407e-05/0.2792, allocations: 22.19 kB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/0.2793, allocations: 123.1 kB / 440.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004703/0.2798, allocations: 148.2 kB / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.2808, allocations: 0.5843 MB / 441.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.111e-05/0.2809, allocations: 66.38 kB / 441.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.281, allocations: 87.88 kB / 441.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.2823, allocations: 0.7754 MB / 442.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.2823, allocations: 7.938 kB / 442.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.2824, allocations: 35.94 kB / 442.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.2824, allocations: 20 kB / 442.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2834, allocations: 0.5153 MB / 442.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00411/0.2876, allocations: 3.278 MB / 446 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004927/0.288, allocations: 222.5 kB / 446.2 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.2883, allocations: 100.8 kB / 446.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.2883, allocations: 4 kB / 446.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2883, allocations: 38.56 kB / 446.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.2883, allocations: 0 / 446.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001976/0.2903, allocations: 0.9055 MB / 447.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.2904, allocations: 81.34 kB / 447.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009164/0.2913, allocations: 0.7427 MB / 448 MB, free: 5.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.2913, allocations: 33.7 kB / 448.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.2917, allocations: 0.4996 MB / 448.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.591e-05/0.2918, allocations: 111.1 kB / 448.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.292, allocations: 114.2 kB / 448.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.2921, allocations: 374.8 kB / 449.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.2924, allocations: 129.2 kB / 449.3 MB, free: 4.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.2929, allocations: 426.1 kB / 449.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008106/0.2937, allocations: 0.5677 MB / 450.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.2937, allocations: 4 kB / 450.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001041/0.2948, allocations: 0.6193 MB / 450.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.2948, allocations: 11.44 kB / 450.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.2948, allocations: 8 kB / 450.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/0.295, allocations: 36.84 kB / 450.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000416/0.2954, allocations: 131.8 kB / 451.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.2965, allocations: 1.287 MB / 452.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003996/0.2969, allocations: 40.12 kB / 452.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.2969, allocations: 31.98 kB / 452.4 MB, free: 0.6875 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003188/0.2973, allocations: 241.5 kB / 452.7 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.2974, allocations: 83.48 kB / 452.7 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006365/0.298, allocations: 321.7 kB / 453.1 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.298, allocations: 8 kB / 453.1 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-06/0.298, allocations: 0 / 453.1 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.298, allocations: 0 / 453.1 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.2997, allocations: 1.072 MB / 454.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2997, allocations: 0 / 454.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.2999, allocations: 59.91 kB / 454.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001359/0.3001, allocations: 20.84 kB / 454.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.3001, allocations: 8 kB / 454.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009983/0.3011, allocations: 1.272 MB / 455.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.3011, allocations: 4.031 kB / 455.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009043/0.302, allocations: 0.5569 MB / 456.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.3022, allocations: 95.53 kB / 456.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.224e-05/0.3023, allocations: 8 kB / 456.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/0.3026, allocations: 23.98 kB / 456.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.3026, allocations: 27.89 kB / 456.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.3026, allocations: 12 kB / 456.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006887/0.3033, allocations: 0.5068 MB / 456.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3033, allocations: 0 / 456.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006366/0.304, allocations: 163.9 kB / 456.9 MB, free: 11.97 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001377/0.3053, allocations: 1.105 MB / 458 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008958/0.3062, allocations: 449.3 kB / 458.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3062, allocations: 4.062 kB / 458.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.3066, allocations: 240.7 kB / 458.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008752/0.3075, allocations: 190.6 kB / 458.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009528/0.317, allocations: 6.278 MB / 465.1 MB, free: 3.242 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.3177, allocations: 0.9486 MB / 466.1 MB, free: 2.266 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003049/0.318, allocations: 90.02 kB / 466.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003717/0.3183, allocations: 303.3 kB / 466.5 MB, free: 1.879 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3183, allocations: 0 / 466.5 MB, free: 1.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04712/0.3655, allocations: 15.98 MB / 482.5 MB, free: 2.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.61, allocations: 4.062 kB / 482.5 MB, free: 2.145 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.179905331984628]