Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007734/0.0007779, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.3 MB / 239 MB, free: 5.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009459/0.0009459, allocations: 168.5 kB / 290.3 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03285/0.03285, allocations: 8.779 MB / 350.1 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003661, allocations: 8.781 kB / 413.3 MB, free: 43.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.0909, allocations: 52.56 MB / 465.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.0005778/0.09151, allocations: 226.4 kB / 466.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001405/0.09166, allocations: 23.86 kB / 466.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.096e-05/0.0917, allocations: 7.938 kB / 466.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.531e-05/0.09172, allocations: 0 / 466.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.181e-05/0.09177, allocations: 3.938 kB / 466.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.877e-05/0.09188, allocations: 3.984 kB / 466.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.707e-05/0.09194, allocations: 11.94 kB / 466.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.058e-05/0.092, allocations: 4 kB / 466.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.227e-05/0.09203, allocations: 11.94 kB / 466.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.8e-05/0.09209, allocations: 11.97 kB / 466.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.09212, allocations: 0 / 466.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.707e-06/0.09213, allocations: 0 / 466.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.09214, allocations: 0 / 466.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.09218, allocations: 29.7 kB / 466.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 3.707e-05/0.09222, allocations: 0 / 466.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09223, allocations: 0 / 466.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.09224, allocations: 0 / 466.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.09225, allocations: 3.938 kB / 466.2 MB, free: 13.11 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003453/0.0926, allocations: 337.6 kB / 466.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.09265, allocations: 8.031 kB / 466.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.192e-05/0.09269, allocations: 34.56 kB / 466.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.186e-05/0.09272, allocations: 3.953 kB / 466.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.09286, allocations: 163.1 kB / 466.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.09288, allocations: 4 kB / 466.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.953e-05/0.0929, allocations: 0 / 466.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.33e-05/0.093, allocations: 33.7 kB / 466.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.09302, allocations: 3.984 kB / 466.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.09303, allocations: 7.984 kB / 466.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.09304, allocations: 3.953 kB / 466.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.218e-05/0.09308, allocations: 7.938 kB / 466.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.09326, allocations: 153.7 kB / 466.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.389e-05/0.09333, allocations: 34.58 kB / 466.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.554e-05/0.09337, allocations: 16.94 kB / 467 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/0.09338, allocations: 0 / 467 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.09341, allocations: 38.56 kB / 467 MB, free: 12.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 2.485e-06/0.09342, allocations: 0 / 467 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001315/0.09356, allocations: 53.56 kB / 467.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.0936, allocations: 55.41 kB / 467.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.615e-05/0.09366, allocations: 97.81 kB / 467.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.09368, allocations: 29.69 kB / 467.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.855e-05/0.09372, allocations: 84.14 kB / 467.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.09375, allocations: 11.81 kB / 467.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-06/0.09376, allocations: 0 / 467.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.09386, allocations: 318.8 kB / 467.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.194e-05/0.09388, allocations: 3.938 kB / 467.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.212e-05/0.0939, allocations: 7.984 kB / 467.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.068e-05/0.09392, allocations: 8 kB / 467.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.09393, allocations: 0 / 467.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.264e-05/0.094, allocations: 45.64 kB / 467.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.09402, allocations: 11.98 kB / 467.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.09403, allocations: 0 / 467.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.09405, allocations: 4 kB / 467.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.058e-05/0.09414, allocations: 8 kB / 467.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.09416, allocations: 0 / 467.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.082e-05/0.09418, allocations: 11.89 kB / 467.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-06/0.09419, allocations: 0 / 467.7 MB, free: 11.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 6.617e-05/0.09426, allocations: 114.5 kB / 467.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-06/0.09427, allocations: 3.906 kB / 467.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.835e-05/0.0943, allocations: 7.484 kB / 467.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.0943, allocations: 0 / 467.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.09431, allocations: 8 kB / 467.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.09432, allocations: 0.5156 kB / 467.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.09443, allocations: 157.6 kB / 468 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.09444, allocations: 0 / 468 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.852e-05/0.0945, allocations: 8 kB / 468 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.09451, allocations: 0 / 468 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.09452, allocations: 0 / 468 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.09453, allocations: 0 / 468 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.09453, allocations: 3.938 kB / 468 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.09466, allocations: 85.06 kB / 468.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.0947, allocations: 81.09 kB / 468.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.09472, allocations: 4.031 kB / 468.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.64e-05/0.09474, allocations: 3.938 kB / 468.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.276e-05/0.09476, allocations: 0 / 468.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.09477, allocations: 0 / 468.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.449e-05/0.09481, allocations: 83.28 kB / 468.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09481, allocations: 0 / 468.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001756/0.09499, allocations: 4 kB / 468.3 MB, free: 10.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0003508/0.09535, allocations: 0.6168 MB / 468.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.157e-05/0.09543, allocations: 19.98 kB / 468.9 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.09544, allocations: 0 / 468.9 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.518e-05/0.09546, allocations: 4 kB / 468.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.09561, allocations: 5.656 kB / 468.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005903/0.09621, allocations: 462.8 kB / 469.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.09648, allocations: 0.6731 MB / 470.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.524e-05/0.09651, allocations: 0 / 470.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.761e-05/0.09654, allocations: 11.42 kB / 470.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09654, allocations: 0 / 470.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009585/0.1061, allocations: 0.9156 MB / 471 MB, free: 7.973 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.1063, allocations: 178.5 kB / 471.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/1.721, allocations: 0 / 471.2 MB, free: 7.727 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1) Environment - environmentSimulation: