Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004721/0.004721, allocations: 183.1 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.1237/0.1237, allocations: 7.041 MB / 14.92 MB, free: 244 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.231/3.231, allocations: 194.2 MB / 211 MB, free: 15.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002358/0.002358, allocations: 117.2 kB / 257.5 MB, free: 336 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2312/0.2337, allocations: 52.1 MB / 309.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6004/0.8341, allocations: 45.96 MB / 355.6 MB, free: 46.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/1.04, allocations: 78.37 MB / 433.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004803/1.04, allocations: 79.95 kB / 434 MB, free: 13.08 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.1211/1.161, allocations: 33.17 MB / 467.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.242e-05/1.162, allocations: 11.94 kB / 467.2 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/1.163, allocations: 181.8 kB / 467.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004849/1.168, allocations: 1.486 MB / 468.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/1.168, allocations: 48 kB / 468.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000515/1.168, allocations: 79.91 kB / 469 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00511/1.173, allocations: 1.268 MB / 470.3 MB, free: 8.898 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004588/1.178, allocations: 1.272 MB / 471.5 MB, free: 7.602 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.135e-05/1.178, allocations: 0 / 471.5 MB, free: 7.602 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001849/1.178, allocations: 7.938 kB / 471.5 MB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.277e-05/1.179, allocations: 28 kB / 471.6 MB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01936/1.198, allocations: 5.609 MB / 477.2 MB, free: 1.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003742/1.202, allocations: 0.974 MB / 478.1 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001698/1.203, allocations: 0.5632 MB / 478.7 MB, free: 348 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.177e-05/1.204, allocations: 12.44 kB / 478.7 MB, free: 336 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001864/1.206, allocations: 0.5376 MB / 479.3 MB, free: 15.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 7.695e-06/1.206, allocations: 0 / 479.3 MB, free: 15.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.00353/1.209, allocations: 0.8584 MB / 480.1 MB, free: 14.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/1.209, allocations: 166.7 kB / 480.3 MB, free: 14.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0065/1.216, allocations: 1.337 MB / 481.6 MB, free: 13.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003627/1.216, allocations: 29.7 kB / 481.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/1.217, allocations: 0.4988 MB / 482.1 MB, free: 12.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008428/1.218, allocations: 209 kB / 482.3 MB, free: 12.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/1.219, allocations: 0 / 482.3 MB, free: 12.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003217/1.219, allocations: 333.9 kB / 482.7 MB, free: 12.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/1.22, allocations: 405.2 kB / 483.1 MB, free: 11.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/1.222, allocations: 0.5297 MB / 483.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/1.224, allocations: 0.4885 MB / 484.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/1.224, allocations: 0 / 484.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004244/1.228, allocations: 1.08 MB / 485.2 MB, free: 9.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.85e-05/1.228, allocations: 4 kB / 485.2 MB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/1.228, allocations: 320 / 485.2 MB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.037e-05/1.228, allocations: 15.91 kB / 485.2 MB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00228/1.231, allocations: 207.7 kB / 485.4 MB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-05/1.231, allocations: 8 kB / 485.4 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002077/1.233, allocations: 79.42 kB / 485.5 MB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/1.233, allocations: 20.05 kB / 485.5 MB, free: 9.375 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005946/1.234, allocations: 144.8 kB / 485.6 MB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008934/1.235, allocations: 102.7 kB / 485.7 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003917/1.239, allocations: 0.9403 MB / 486.7 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/1.239, allocations: 4 kB / 486.7 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/1.239, allocations: 0 / 486.7 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-05/1.239, allocations: 5.734 kB / 486.7 MB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/1.25, allocations: 2.694 MB / 489.4 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/1.25, allocations: 0 / 489.4 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/1.252, allocations: 183.8 kB / 489.6 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.3e-05/1.252, allocations: 4 kB / 489.6 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/1.252, allocations: 19.98 kB / 489.6 MB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-05/1.252, allocations: 3.906 kB / 489.6 MB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/1.252, allocations: 0 / 489.6 MB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004242/1.256, allocations: 1.566 MB / 491.2 MB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009729/1.266, allocations: 3.705 MB / 494.9 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/1.268, allocations: 259.6 kB / 495.1 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003673/1.268, allocations: 12 kB / 495.1 MB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/1.269, allocations: 46.14 kB / 495.2 MB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/1.269, allocations: 40.44 kB / 495.2 MB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.328e-05/1.269, allocations: 19.98 kB / 495.2 MB, free: 15.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003288/1.273, allocations: 1.025 MB / 496.3 MB, free: 14.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002148/1.275, allocations: 298.7 kB / 496.5 MB, free: 14.19 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rs.impedanceValue.qabs.absInt.y) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000543/1.275, allocations: 220.3 kB / 496.8 MB, free: 13.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001848/1.277, allocations: 0.9046 MB / 497.7 MB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/1.277, allocations: 4 kB / 497.7 MB, free: 13.06 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000722/1.278, allocations: 437.7 kB / 498.1 MB, free: 12.64 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/1.28, allocations: 232.5 kB / 498.3 MB, free: 12.42 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008947/1.289, allocations: 2.682 MB / 0.4893 GB, free: 9.695 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002578/1.291, allocations: 1.789 MB / 0.491 GB, free: 7.875 MB / 394.7 MB Notification: Performance of SimCode: time 1.994e-06/1.291, allocations: 0 / 0.491 GB, free: 7.875 MB / 394.7 MB (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1)