Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.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.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",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.0009374/0.0009378, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.343/1.343, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.00112/0.00112, allocations: 179.9 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.05368/0.05368, allocations: 8.79 MB / 350.1 MB, free: 4.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000422/0.0004222, allocations: 14.27 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1115, allocations: 52.56 MB / 465.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.0007973/0.1123, allocations: 218.3 kB / 465.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001608/0.1125, allocations: 19.94 kB / 466 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.882e-05/0.1126, allocations: 0 / 466 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.1126, allocations: 3.938 kB / 466 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.342e-05/0.1127, allocations: 4 kB / 466 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001323/0.1128, allocations: 3.984 kB / 466 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.859e-05/0.1129, allocations: 11.98 kB / 466 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.177e-05/0.1129, allocations: 0 / 466 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.281e-05/0.113, allocations: 4 kB / 466 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.499e-05/0.113, allocations: 3.938 kB / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.516e-05/0.113, allocations: 0 / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.192e-05/0.1131, allocations: 0 / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.644e-05/0.1131, allocations: 15.92 kB / 466 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.195e-05/0.1131, allocations: 25.7 kB / 466 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.425e-05/0.1132, allocations: 4 kB / 466 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1132, allocations: 0 / 466 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1132, allocations: 0 / 466 MB, free: 13.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1132, allocations: 0 / 466 MB, free: 13.23 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.0004776/0.1137, allocations: 323.3 kB / 466.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/0.1138, allocations: 8.031 kB / 466.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.817e-05/0.1138, allocations: 30.56 kB / 466.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.1138, allocations: 7.953 kB / 466.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.114, allocations: 171.2 kB / 466.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.114, allocations: 4 kB / 466.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.1141, allocations: 8 kB / 466.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.1142, allocations: 37.67 kB / 466.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1142, allocations: 0 / 466.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.1142, allocations: 0 / 466.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1143, allocations: 3.953 kB / 466.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.047e-05/0.1143, allocations: 11.98 kB / 466.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002083/0.1145, allocations: 149.7 kB / 466.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.032e-05/0.1146, allocations: 42.55 kB / 466.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.1146, allocations: 0 / 466.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.1146, allocations: 34.56 kB / 466.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 7.21e-07/0.1147, allocations: 0 / 466.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001716/0.1148, allocations: 45.78 kB / 466.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.1149, allocations: 55.41 kB / 466.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.718e-05/0.115, allocations: 105.7 kB / 467 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.115, allocations: 25.7 kB / 467.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.348e-05/0.1151, allocations: 84.14 kB / 467.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.385e-05/0.1151, allocations: 15.81 kB / 467.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.1151, allocations: 0 / 467.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1153, allocations: 310.8 kB / 467.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.059e-05/0.1153, allocations: 15.92 kB / 467.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.225e-05/0.1153, allocations: 4 kB / 467.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.38e-05/0.1154, allocations: 8 kB / 467.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1154, allocations: 0 / 467.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.001e-05/0.1154, allocations: 45.69 kB / 467.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1155, allocations: 11.94 kB / 467.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1155, allocations: 3.984 kB / 467.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.1155, allocations: 0 / 467.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.1156, allocations: 8 kB / 467.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.1156, allocations: 3.938 kB / 467.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.1157, allocations: 0 / 467.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.1157, allocations: 11.95 kB / 467.6 MB, free: 11.45 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 9.494e-05/0.1158, allocations: 109.8 kB / 467.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-06/0.1158, allocations: 3.906 kB / 467.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.83e-05/0.1158, allocations: 16.02 kB / 467.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1158, allocations: 0 / 467.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1158, allocations: 0 / 467.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1158, allocations: 0 / 467.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.116, allocations: 157.6 kB / 467.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.116, allocations: 0 / 467.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.511e-05/0.1161, allocations: 8 kB / 467.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.1161, allocations: 3.984 kB / 467.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.1161, allocations: 0 / 467.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1161, allocations: 0 / 467.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1161, allocations: 4 kB / 467.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.1163, allocations: 89.03 kB / 468 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.1163, allocations: 77.11 kB / 468 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.1164, allocations: 0 / 468 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.476e-05/0.1164, allocations: 0 / 468 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.1164, allocations: 0 / 468 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.1164, allocations: 4 kB / 468 MB, free: 10.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.576e-05/0.1165, allocations: 79.27 kB / 468.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1165, allocations: 64 / 468.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001731/0.1166, allocations: 12 kB / 468.1 MB, free: 10.8 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.0004558/0.1171, allocations: 0.6051 MB / 468.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.695e-05/0.1172, allocations: 23.92 kB / 468.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1172, allocations: 0 / 468.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-05/0.1172, allocations: 4.062 kB / 468.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.1174, allocations: 5.266 kB / 468.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006099/0.118, allocations: 366.4 kB / 469.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1184, allocations: 0.677 MB / 469.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.802e-05/0.1184, allocations: 0 / 469.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.1184, allocations: 19.44 kB / 469.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1184, allocations: 0 / 469.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01081/0.1293, allocations: 0.8713 MB / 470.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002261/0.1295, allocations: 174.8 kB / 470.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.589/1.719, allocations: 0 / 470.9 MB, free: 7.992 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1) Environment - environmentSimulation: