Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical5.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000833/0.000833, allocations: 179.3 kB / 15.15 MB, free: 1.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03866/0.03866, allocations: 8.779 MB / 24.66 MB, free: 172 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.3 MB / 250.8 MB, free: 9.191 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008069/0.000807, allocations: 95.61 kB / 304.1 MB, free: 4.391 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003709, allocations: 12 kB / 367.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1087, allocations: 52.54 MB / 419.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical5): time 0.001837/0.1105, allocations: 1.488 MB / 421.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006472/0.1112, allocations: 431.2 kB / 421.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.031e-05/0.1113, allocations: 8 kB / 421.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.117e-05/0.1114, allocations: 11.91 kB / 421.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.559e-05/0.1115, allocations: 23.78 kB / 421.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001254/0.1116, allocations: 23.97 kB / 421.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.1117, allocations: 115.5 kB / 421.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.1119, allocations: 29.33 kB / 421.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.12e-05/0.1119, allocations: 43.8 kB / 421.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.721e-05/0.112, allocations: 39.84 kB / 422 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.112, allocations: 4 kB / 422 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.957e-05/0.1121, allocations: 8 kB / 422 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.304e-05/0.1121, allocations: 27.8 kB / 422 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.497e-05/0.1121, allocations: 37.7 kB / 422.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.1122, allocations: 92.03 kB / 422.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1123, allocations: 0 / 422.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1123, allocations: 0 / 422.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1123, allocations: 0 / 422.1 MB, free: 1.809 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000466/0.1128, allocations: 395 kB / 422.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1128, allocations: 12.02 kB / 422.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.1129, allocations: 46.55 kB / 422.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.447e-05/0.1129, allocations: 19.7 kB / 422.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.1131, allocations: 190.9 kB / 422.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.1131, allocations: 11.94 kB / 422.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.1131, allocations: 12 kB / 422.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.1133, allocations: 97.59 kB / 422.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1134, allocations: 4 kB / 422.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.1134, allocations: 8 kB / 422.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1134, allocations: 3.953 kB / 422.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.1135, allocations: 59.97 kB / 423 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007143/0.1142, allocations: 0.5059 MB / 423.5 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.004e-05/0.1143, allocations: 42.56 kB / 423.5 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.281e-05/0.1144, allocations: 16.95 kB / 423.5 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.1144, allocations: 3.984 kB / 423.6 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.1144, allocations: 34.56 kB / 423.6 MB, free: 184 kB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.1144, allocations: 0 / 423.6 MB, free: 184 kB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001704/0.1146, allocations: 69.56 kB / 423.7 MB, free: 108 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.1146, allocations: 55.41 kB / 423.7 MB, free: 40 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2465/0.3611, allocations: 140.1 kB / 423.8 MB, free: 43.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.3612, allocations: 28.55 kB / 423.9 MB, free: 43.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.099e-05/0.3613, allocations: 119 kB / 424 MB, free: 43.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.3613, allocations: 16.44 kB / 424 MB, free: 43.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-06/0.3613, allocations: 3 kB / 424 MB, free: 43.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.874e-05/0.3614, allocations: 315.1 kB / 424.3 MB, free: 42.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.604e-05/0.3615, allocations: 22.23 kB / 424.3 MB, free: 42.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.614e-05/0.3615, allocations: 30.2 kB / 424.4 MB, free: 42.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.4e-05/0.3616, allocations: 18.34 kB / 424.4 MB, free: 42.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3616, allocations: 0 / 424.4 MB, free: 42.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001338/0.3617, allocations: 80.83 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3617, allocations: 5.812 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3617, allocations: 1.469 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.3618, allocations: 2.969 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.3619, allocations: 21.14 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.3619, allocations: 2.812 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.327e-05/0.362, allocations: 1.75 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.362, allocations: 3.562 kB / 424.5 MB, free: 42.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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 8.373e-05/0.3621, allocations: 119.4 kB / 424.6 MB, free: 42.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.472e-05/0.3621, allocations: 10.42 kB / 424.6 MB, free: 42.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.3622, allocations: 11.14 kB / 424.6 MB, free: 42.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3622, allocations: 1.656 kB / 424.6 MB, free: 42.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.3622, allocations: 7.797 kB / 424.6 MB, free: 42.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3622, allocations: 2.375 kB / 424.7 MB, free: 42.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.3624, allocations: 192.7 kB / 424.8 MB, free: 42.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3624, allocations: 0.5 kB / 424.8 MB, free: 42.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.166e-05/0.3625, allocations: 13.73 kB / 424.9 MB, free: 42.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3625, allocations: 0 / 424.9 MB, free: 42.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.3625, allocations: 0 / 424.9 MB, free: 42.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3625, allocations: 4.281 kB / 424.9 MB, free: 42.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3625, allocations: 0.75 kB / 424.9 MB, free: 42.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.3627, allocations: 171.5 kB / 425 MB, free: 42.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.3627, allocations: 86.86 kB / 425.1 MB, free: 42.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.3627, allocations: 0.75 kB / 425.1 MB, free: 42.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.834e-05/0.3628, allocations: 6.656 kB / 425.1 MB, free: 42.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.999e-05/0.3629, allocations: 3.281 kB / 425.1 MB, free: 42.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-06/0.3629, allocations: 4.531 kB / 425.1 MB, free: 42.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.095e-05/0.3629, allocations: 113.7 kB / 425.2 MB, free: 42.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3629, allocations: 0 / 425.2 MB, free: 42.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.3632, allocations: 23.67 kB / 425.3 MB, free: 42.03 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.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 (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 Backend phase and start with SimCode phase: time 0.0003043/0.3635, allocations: 0.6905 MB / 426 MB, free: 41.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001075/0.3636, allocations: 35.92 kB / 426 MB, free: 41.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3636, allocations: 0 / 426 MB, free: 41.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.054e-05/0.3636, allocations: 20.73 kB / 426 MB, free: 41.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.364, allocations: 8.312 kB / 426 MB, free: 41.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009765/0.365, allocations: 0.709 MB / 426.7 MB, free: 40.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.3651, allocations: 0.7001 MB / 427.4 MB, free: 40.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.875e-05/0.3652, allocations: 6.719 kB / 427.4 MB, free: 40.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.412e-05/0.3652, allocations: 28.88 kB / 427.5 MB, free: 40.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3652, allocations: 0 / 427.5 MB, free: 40.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01121/0.3764, allocations: 1.744 MB / 429.2 MB, free: 40.16 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.3767, allocations: 171.1 kB / 429.4 MB, free: 39.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.18, allocations: 3.844 kB / 429.4 MB, free: 39.93 MB / 350.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical5.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1)