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.001244/0.001244, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001326/0.001326, allocations: 189.8 kB / 23.72 MB, free: 4.684 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.387/1.387, allocations: 225.6 MB / 252.5 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 51.92 kB / 370.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2678, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008772/0.2766, allocations: 7.193 MB / 429.8 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004004/0.2806, allocations: 2.36 MB / 432.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006703/0.2813, allocations: 23.94 kB / 432.2 MB, free: 5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.2826, allocations: 0.5166 MB / 432.7 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009785/0.2836, allocations: 413 kB / 433.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.284, allocations: 207.7 kB / 433.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001304/0.2854, allocations: 1.199 MB / 434.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005346/0.2859, allocations: 344.5 kB / 434.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005766/0.2865, allocations: 482.1 kB / 435.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005923/0.2871, allocations: 493.8 kB / 435.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.2872, allocations: 112 kB / 435.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.2875, allocations: 159.9 kB / 436.1 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.2877, allocations: 227.2 kB / 436.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005075/0.2882, allocations: 0.5443 MB / 436.9 MB, free: 320 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001707/0.2899, allocations: 1.44 MB / 438.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2899, allocations: 0 / 438.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2899, allocations: 0 / 438.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.2899, allocations: 7.938 kB / 438.3 MB, free: 14.86 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.002103/0.292, allocations: 1.201 MB / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.292, allocations: 12.03 kB / 439.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001536/0.2922, allocations: 127.1 kB / 439.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004614/0.2927, allocations: 144.2 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.2938, allocations: 0.5843 MB / 440.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.183e-05/0.2938, allocations: 58.38 kB / 440.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.2939, allocations: 88.08 kB / 440.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.2952, allocations: 0.7754 MB / 441.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.2953, allocations: 7.984 kB / 441.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/0.2953, allocations: 32 kB / 441.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.2954, allocations: 20 kB / 441.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.2964, allocations: 0.5153 MB / 441.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004151/0.3005, allocations: 3.278 MB / 445.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004731/0.301, allocations: 210.5 kB / 445.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002334/0.3012, allocations: 112.7 kB / 445.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.3012, allocations: 7.938 kB / 445.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3013, allocations: 38.56 kB / 445.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.793e-06/0.3013, allocations: 0 / 445.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001955/0.3032, allocations: 0.9172 MB / 446.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/0.3033, allocations: 81.34 kB / 446.5 MB, free: 6.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009513/0.3043, allocations: 0.7349 MB / 447.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.3043, allocations: 33.7 kB / 447.3 MB, free: 5.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003858/0.3047, allocations: 0.4996 MB / 447.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.459e-05/0.3048, allocations: 103.1 kB / 447.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.3049, allocations: 118.2 kB / 448 MB, free: 4.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.3051, allocations: 378.8 kB / 448.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.3054, allocations: 129.2 kB / 448.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.3059, allocations: 418.1 kB / 448.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008203/0.3067, allocations: 0.5756 MB / 449.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3067, allocations: 4 kB / 449.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001051/0.3077, allocations: 0.6151 MB / 450.1 MB, free: 2.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3078, allocations: 8 kB / 450.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.3078, allocations: 8 kB / 450.1 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001531/0.3079, allocations: 32.84 kB / 450.1 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004218/0.3084, allocations: 135.8 kB / 450.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.3095, allocations: 1.299 MB / 451.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004036/0.3099, allocations: 35.98 kB / 451.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.3099, allocations: 28 kB / 451.6 MB, free: 0.7344 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.0003218/0.3102, allocations: 237.5 kB / 451.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.3103, allocations: 75.48 kB / 451.9 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006409/0.311, allocations: 325.8 kB / 452.2 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.311, allocations: 4 kB / 452.3 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.311, allocations: 0 / 452.3 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.311, allocations: 7.984 kB / 452.3 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.3127, allocations: 1.06 MB / 453.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3127, allocations: 7.922 kB / 453.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.3129, allocations: 63.91 kB / 453.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-05/0.313, allocations: 25.06 kB / 453.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.313, allocations: 8 kB / 453.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009664/0.314, allocations: 1.268 MB / 454.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.314, allocations: 4.031 kB / 454.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008808/0.3149, allocations: 0.5608 MB / 455.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001984/0.3151, allocations: 99.52 kB / 455.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.389e-05/0.3151, allocations: 12 kB / 455.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/0.3155, allocations: 19.98 kB / 455.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.3155, allocations: 31.83 kB / 455.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.3155, allocations: 8 kB / 455.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006397/0.3162, allocations: 0.5029 MB / 455.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3162, allocations: 0 / 455.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006089/0.3168, allocations: 171.9 kB / 456.1 MB, free: 12.01 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.001273/0.3181, allocations: 1.109 MB / 457.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009/0.319, allocations: 446.2 kB / 457.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.319, allocations: 0 / 457.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003598/0.3193, allocations: 240.1 kB / 457.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008354/0.3202, allocations: 179 kB / 458 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008567/0.3287, allocations: 6.284 MB / 464.3 MB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.3293, allocations: 0.9449 MB / 465.3 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003072/0.3296, allocations: 90.02 kB / 465.4 MB, free: 2.227 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003585/0.33, allocations: 295.3 kB / 465.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.33, allocations: 0 / 465.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05405/0.384, allocations: 15.95 MB / 481.6 MB, free: 2.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.9, allocations: 5.922 kB / 481.6 MB, free: 2.219 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: 16.409940546145663]