Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001545/0.001545, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001784/0.001784, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 51.92 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3021, allocations: 53.37 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005598/0.3076, allocations: 3.017 MB / 434.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.3099, allocations: 0.7556 MB / 434.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005361/0.3104, allocations: 11.94 kB / 434.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003557/0.3108, allocations: 59.38 kB / 435 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004396/0.3112, allocations: 107.1 kB / 435.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.3117, allocations: 115.8 kB / 435.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006976/0.3124, allocations: 410.3 kB / 435.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003654/0.3127, allocations: 146.4 kB / 435.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.313, allocations: 163.4 kB / 435.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004437/0.3135, allocations: 183.2 kB / 436.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.3136, allocations: 43.94 kB / 436.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002087/0.3138, allocations: 56 kB / 436.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002411/0.314, allocations: 111.6 kB / 436.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.3144, allocations: 207 kB / 436.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008303/0.3152, allocations: 0.4984 MB / 437 MB, free: 1.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3152, allocations: 0 / 437 MB, free: 1.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3152, allocations: 0 / 437 MB, free: 1.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3152, allocations: 0 / 437 MB, free: 1.008 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001651/0.3169, allocations: 0.7234 MB / 437.7 MB, free: 256 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.3169, allocations: 8.031 kB / 437.7 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.523e-05/0.317, allocations: 66.67 kB / 437.8 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.245e-05/0.3171, allocations: 40.7 kB / 437.8 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/0.3176, allocations: 292.9 kB / 438.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.3177, allocations: 25.03 kB / 438.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.405e-05/0.3177, allocations: 32.38 kB / 438.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.3183, allocations: 342 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3183, allocations: 3.984 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.3184, allocations: 12 kB / 438.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3184, allocations: 11.94 kB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004354/0.3188, allocations: 242.4 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.3207, allocations: 1.261 MB / 440 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.3211, allocations: 162.5 kB / 440.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002558/0.3214, allocations: 116.8 kB / 440.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.3214, allocations: 4 kB / 440.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.3214, allocations: 38.5 kB / 440.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 3.126e-06/0.3214, allocations: 4 kB / 440.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005085/0.3219, allocations: 233.6 kB / 440.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.322, allocations: 51.41 kB / 440.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003768/0.3224, allocations: 316.2 kB / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.3224, allocations: 29.7 kB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.3226, allocations: 212.4 kB / 441.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.3226, allocations: 59.52 kB / 441.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.491e-05/0.3227, allocations: 49.66 kB / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3228, allocations: 338.8 kB / 441.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.323, allocations: 71.95 kB / 441.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.3232, allocations: 135.6 kB / 441.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.3234, allocations: 170.2 kB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.3234, allocations: 0 / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004061/0.3238, allocations: 241.2 kB / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3238, allocations: 4 kB / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3239, allocations: 4 kB / 442.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.3239, allocations: 7.984 kB / 442.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.3241, allocations: 47.92 kB / 442.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3241, allocations: 0 / 442.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.3244, allocations: 72.02 kB / 442.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.3245, allocations: 12 kB / 442.3 MB, free: 11.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001835/0.3247, allocations: 165.6 kB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.3247, allocations: 27.84 kB / 442.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000406/0.3251, allocations: 193.5 kB / 442.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3251, allocations: 4 kB / 442.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3251, allocations: 3.984 kB / 442.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3251, allocations: 4 kB / 442.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008509/0.326, allocations: 0.5998 MB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.326, allocations: 0 / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.3262, allocations: 39.86 kB / 443.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.3262, allocations: 0 / 443.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.3262, allocations: 3.984 kB / 443.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.3262, allocations: 7.938 kB / 443.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3262, allocations: 0 / 443.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005227/0.3267, allocations: 382.6 kB / 443.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.3268, allocations: 39.77 kB / 443.8 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.716e-05/0.3268, allocations: 3.984 kB / 443.8 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.3272, allocations: 59.98 kB / 443.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.3274, allocations: 75.88 kB / 443.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.3274, allocations: 11.92 kB / 443.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002617/0.3277, allocations: 231.1 kB / 444.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3277, allocations: 0 / 444.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003714/0.3281, allocations: 83.78 kB / 444.3 MB, free: 9.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000892/0.329, allocations: 0.9162 MB / 445.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003852/0.3293, allocations: 167.8 kB / 445.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3293, allocations: 0 / 445.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.3295, allocations: 107.9 kB / 445.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.33, allocations: 65.44 kB / 445.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004394/0.3344, allocations: 3.055 MB / 448.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.3348, allocations: 0.7714 MB / 449.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.335, allocations: 30.28 kB / 449.4 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.3352, allocations: 111.4 kB / 449.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3352, allocations: 0 / 449.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0457/0.3809, allocations: 7.63 MB / 457.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.54, allocations: 4 kB / 457.1 MB, free: 12.49 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.33731085807085]