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.0008362/0.0008362, allocations: 86.8 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.341/1.341, allocations: 223.2 MB / 239 MB, free: 5.438 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.0009425/0.0009425, allocations: 180.5 kB / 290.3 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.05797/0.05797, allocations: 8.776 MB / 350.2 MB, free: 4.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 8.656 kB / 413.3 MB, free: 42.89 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08478, allocations: 52.57 MB / 465.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.0005894/0.08541, allocations: 218.4 kB / 466.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001261/0.08555, allocations: 19.92 kB / 466.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.796e-05/0.08558, allocations: 3.938 kB / 466.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.005e-05/0.0856, allocations: 0 / 466.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.109e-05/0.08564, allocations: 0 / 466.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001037/0.08575, allocations: 7.938 kB / 466.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.792e-05/0.08581, allocations: 15.98 kB / 466.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.196e-05/0.08586, allocations: 0 / 466.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.528e-05/0.08588, allocations: 0 / 466.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.138e-05/0.08594, allocations: 7.938 kB / 466.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.08596, allocations: 0 / 466.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.263e-06/0.08597, allocations: 0 / 466.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.248e-05/0.08599, allocations: 7.984 kB / 466.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.362e-05/0.08602, allocations: 29.7 kB / 466.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 3.013e-05/0.08605, allocations: 0 / 466.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.08606, allocations: 0 / 466.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.08607, allocations: 0 / 466.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.467e-06/0.08608, allocations: 4 kB / 466.2 MB, free: 13.06 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.0003264/0.08641, allocations: 323.3 kB / 466.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.08646, allocations: 8.031 kB / 466.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.321e-05/0.0865, allocations: 30.56 kB / 466.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.08653, allocations: 11.95 kB / 466.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.08665, allocations: 167.2 kB / 466.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-06/0.08667, allocations: 0 / 466.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.08669, allocations: 0 / 466.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.171e-05/0.08679, allocations: 41.69 kB / 466.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.0868, allocations: 0 / 466.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.08682, allocations: 4 kB / 466.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.08683, allocations: 3.953 kB / 466.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.454e-05/0.08687, allocations: 7.984 kB / 466.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.08703, allocations: 153.7 kB / 466.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.787e-05/0.08711, allocations: 42.53 kB / 466.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.526e-05/0.08714, allocations: 12.86 kB / 466.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.08716, allocations: 8 kB / 466.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.08718, allocations: 38.58 kB / 467 MB, free: 12.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.08719, allocations: 0 / 467 MB, free: 12.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001374/0.08733, allocations: 45.69 kB / 467 MB, free: 12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.08738, allocations: 55.34 kB / 467.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.254e-05/0.08745, allocations: 101.8 kB / 467.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.08747, allocations: 25.7 kB / 467.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.358e-05/0.08751, allocations: 84.14 kB / 467.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.282e-05/0.08754, allocations: 15.81 kB / 467.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-06/0.08755, allocations: 0 / 467.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.08766, allocations: 314.8 kB / 467.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.419e-05/0.08768, allocations: 7.938 kB / 467.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.191e-05/0.0877, allocations: 8 kB / 467.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.871e-05/0.08772, allocations: 4 kB / 467.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.08773, allocations: 0 / 467.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.391e-05/0.08781, allocations: 45.69 kB / 467.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.08783, allocations: 4 kB / 467.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.08784, allocations: 4 kB / 467.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.08786, allocations: 4 kB / 467.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.353e-05/0.08794, allocations: 15.92 kB / 467.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.08796, allocations: 4 kB / 467.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.623e-05/0.08798, allocations: 3.953 kB / 467.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-06/0.08799, allocations: 0 / 467.7 MB, free: 11.27 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.864e-05/0.08806, allocations: 106.5 kB / 467.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-06/0.08808, allocations: 7.906 kB / 467.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.193e-05/0.0881, allocations: 11.5 kB / 467.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.08811, allocations: 0 / 467.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.08812, allocations: 4 kB / 467.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.08813, allocations: 0 / 467.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.08824, allocations: 153.6 kB / 468 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.08824, allocations: 0 / 468 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.113e-05/0.08831, allocations: 11.98 kB / 468 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.08832, allocations: 0 / 468 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.08834, allocations: 8 kB / 468 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.08834, allocations: 0 / 468 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.08835, allocations: 0 / 468 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001238/0.08848, allocations: 85.53 kB / 468.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.923e-05/0.08851, allocations: 81.05 kB / 468.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.023e-05/0.08853, allocations: 0 / 468.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.549e-05/0.08855, allocations: 0 / 468.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.08857, allocations: 8.016 kB / 468.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.08858, allocations: 48 / 468.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.254e-05/0.08862, allocations: 83.27 kB / 468.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08862, allocations: 0 / 468.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001812/0.08881, allocations: 4.062 kB / 468.3 MB, free: 10.62 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.0003414/0.08916, allocations: 0.6129 MB / 468.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.371e-05/0.08923, allocations: 15.94 kB / 468.9 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.08924, allocations: 0 / 468.9 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.365e-05/0.08926, allocations: 8 kB / 468.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.08942, allocations: 8.062 kB / 468.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004577/0.08988, allocations: 354.5 kB / 469.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.09012, allocations: 0.677 MB / 469.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.538e-05/0.09014, allocations: 0 / 469.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.09017, allocations: 19.42 kB / 470 MB, free: 8.828 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09018, allocations: 0 / 470 MB, free: 8.828 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0095/0.09969, allocations: 0.8846 MB / 470.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001522/0.09986, allocations: 171.3 kB / 471 MB, free: 7.812 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/1.708, allocations: 2.312 kB / 471 MB, free: 7.812 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: