Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001829/0.001829, allocations: 112.2 kB / 21.22 MB, free: 0.7266 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.00207/0.00207, allocations: 208.2 kB / 24.52 MB, free: 4.066 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.394/1.394, allocations: 230.6 MB / 258.3 MB, free: 7.996 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_Start,fileNamePrefix="Modelica_4_1_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_1_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.001443/0.001443, allocations: 47.92 kB / 378.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.269, allocations: 53.37 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009728/0.2788, allocations: 7.216 MB / 439.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004178/0.2829, allocations: 2.403 MB / 441.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004549/0.2834, allocations: 27.88 kB / 441.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.2846, allocations: 0.5126 MB / 442.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007769/0.2854, allocations: 409 kB / 442.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.2858, allocations: 207.8 kB / 442.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.2871, allocations: 1.202 MB / 443.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000538/0.2876, allocations: 340.5 kB / 444.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006238/0.2882, allocations: 478.2 kB / 444.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005966/0.2888, allocations: 0.4939 MB / 445.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.289, allocations: 112 kB / 445.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002706/0.2893, allocations: 156 kB / 445.5 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.2894, allocations: 227.2 kB / 445.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004924/0.2899, allocations: 0.552 MB / 446.2 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.2915, allocations: 1.44 MB / 447.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2915, allocations: 0 / 447.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2915, allocations: 0 / 447.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.2915, allocations: 0 / 447.7 MB, free: 7.031 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.00198/0.2935, allocations: 1.198 MB / 448.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2935, allocations: 12.03 kB / 448.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.718e-05/0.2935, allocations: 18.19 kB / 448.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.2937, allocations: 131 kB / 449 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004696/0.2941, allocations: 152.2 kB / 449.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.2952, allocations: 0.5766 MB / 449.7 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.137e-05/0.2952, allocations: 62.38 kB / 449.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.2954, allocations: 83.88 kB / 449.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.2967, allocations: 0.7794 MB / 450.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.2967, allocations: 11.89 kB / 450.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-05/0.2968, allocations: 32 kB / 450.7 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.2968, allocations: 24 kB / 450.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.2978, allocations: 0.5153 MB / 451.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/0.3019, allocations: 3.262 MB / 454.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005064/0.3024, allocations: 222.5 kB / 454.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002321/0.3027, allocations: 108.8 kB / 454.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.3027, allocations: 4 kB / 454.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.3027, allocations: 34.56 kB / 454.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.472e-06/0.3027, allocations: 0 / 454.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.001959/0.3047, allocations: 0.9127 MB / 455.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.875e-05/0.3048, allocations: 81.34 kB / 455.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009621/0.3057, allocations: 0.7427 MB / 456.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.3058, allocations: 29.7 kB / 456.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/0.3061, allocations: 0.4996 MB / 457.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.287e-05/0.3062, allocations: 115.1 kB / 457.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.3064, allocations: 118.2 kB / 457.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.3066, allocations: 374.8 kB / 457.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.3068, allocations: 125.2 kB / 457.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.3073, allocations: 422.2 kB / 458.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007956/0.3081, allocations: 0.5753 MB / 458.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3081, allocations: 4 kB / 458.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001078/0.3092, allocations: 0.6155 MB / 459.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.3092, allocations: 12 kB / 459.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.3093, allocations: 12.09 kB / 459.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001641/0.3094, allocations: 36.78 kB / 459.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004233/0.3098, allocations: 139.8 kB / 459.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.311, allocations: 1.283 MB / 460.9 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/0.3113, allocations: 35.88 kB / 461 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.916e-05/0.3114, allocations: 28 kB / 461 MB, free: 8.883 MB / 366.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.0003131/0.3117, allocations: 245.7 kB / 461.2 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.3118, allocations: 75.53 kB / 461.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006416/0.3124, allocations: 317.4 kB / 461.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.3125, allocations: 4 kB / 461.6 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.3125, allocations: 0 / 461.6 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3125, allocations: 4 kB / 461.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.3141, allocations: 1.072 MB / 462.7 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3141, allocations: 4 kB / 462.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002556/0.3143, allocations: 55.91 kB / 462.8 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.051e-05/0.3144, allocations: 24.84 kB / 462.8 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.3144, allocations: 8 kB / 462.8 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.3154, allocations: 1.279 MB / 464.1 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3154, allocations: 0 / 464.1 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008844/0.3163, allocations: 0.5532 MB / 464.6 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.3165, allocations: 99.53 kB / 464.7 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.3166, allocations: 8 kB / 464.7 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.3169, allocations: 19.98 kB / 464.8 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.317, allocations: 35.83 kB / 464.8 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.317, allocations: 15.94 kB / 464.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006641/0.3177, allocations: 0.5029 MB / 465.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3177, allocations: 0 / 465.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006238/0.3183, allocations: 159.9 kB / 465.5 MB, free: 4.164 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.0013/0.3196, allocations: 1.118 MB / 466.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008626/0.3205, allocations: 444.8 kB / 467 MB, free: 2.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.3205, allocations: 4 kB / 467 MB, free: 2.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003745/0.3208, allocations: 236.1 kB / 467.2 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009087/0.3217, allocations: 200.8 kB / 467.4 MB, free: 2.117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008799/0.3305, allocations: 6.285 MB / 473.7 MB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.3312, allocations: 0.9372 MB / 474.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003158/0.3315, allocations: 94 kB / 474.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003665/0.3318, allocations: 299.3 kB / 475.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3318, allocations: 0 / 475.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04619/0.378, allocations: 16.01 MB / 491.1 MB, free: 10.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.62, allocations: 4.062 kB / 491.1 MB, free: 10.3 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.06784604000859]