Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",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.001206/0.001206, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.318/1.318, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.00117/0.00117, allocations: 188.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03347/0.03347, allocations: 8.789 MB / 348.1 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001437, allocations: 77.78 kB / 410.5 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.09003, allocations: 51.57 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.002895/0.09297, allocations: 1.858 MB / 463.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000687/0.09368, allocations: 454.9 kB / 464.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.286e-05/0.09378, allocations: 0 / 464.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.09391, allocations: 11.92 kB / 464.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-05/0.09398, allocations: 31.77 kB / 464.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001257/0.09411, allocations: 19.98 kB / 464.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.09428, allocations: 119.4 kB / 464.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.09442, allocations: 45.17 kB / 464.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.053e-05/0.09447, allocations: 39.86 kB / 464.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.588e-05/0.09457, allocations: 47.78 kB / 464.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.09459, allocations: 12 kB / 464.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.375e-05/0.09462, allocations: 8 kB / 464.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.09466, allocations: 19.92 kB / 464.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.333e-05/0.09472, allocations: 55.67 kB / 464.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.09487, allocations: 115.9 kB / 464.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.09488, allocations: 0 / 464.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09488, allocations: 0 / 464.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.09489, allocations: 0 / 464.9 MB, free: 11.92 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005377/0.09544, allocations: 419.1 kB / 465.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.09548, allocations: 11.97 kB / 465.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.327e-05/0.09555, allocations: 42.75 kB / 465.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.697e-05/0.09559, allocations: 12.84 kB / 465.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.09579, allocations: 196.1 kB / 465.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.09581, allocations: 4.375 kB / 465.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.09583, allocations: 12.38 kB / 465.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.09603, allocations: 107.3 kB / 465.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.09604, allocations: 0 / 465.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.09606, allocations: 4 kB / 465.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.09607, allocations: 8 kB / 465.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.09619, allocations: 55.97 kB / 465.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007356/0.09693, allocations: 0.502 MB / 466.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.762e-05/0.09704, allocations: 46.56 kB / 466.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.08e-05/0.09707, allocations: 16.86 kB / 466.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/0.09709, allocations: 0 / 466.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.09712, allocations: 30.56 kB / 466.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 3.426e-06/0.09713, allocations: 11.94 kB / 466.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001723/0.0973, allocations: 61.72 kB / 466.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.09734, allocations: 55.39 kB / 466.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.09747, allocations: 147.9 kB / 466.6 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.09749, allocations: 29.7 kB / 466.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.09756, allocations: 112 kB / 466.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.09758, allocations: 15.81 kB / 466.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.09762, allocations: 21.7 kB / 466.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.09775, allocations: 330.8 kB / 467.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.694e-05/0.09778, allocations: 11.98 kB / 467.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.833e-05/0.09782, allocations: 30.58 kB / 467.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.435e-05/0.09789, allocations: 50.5 kB / 467.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.0979, allocations: 0 / 467.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001201/0.09803, allocations: 85.53 kB / 467.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.09804, allocations: 4 kB / 467.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.09806, allocations: 4 kB / 467.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.09807, allocations: 0 / 467.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.414e-05/0.09817, allocations: 15.94 kB / 467.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.09818, allocations: 160 / 467.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.633e-05/0.09823, allocations: 7.938 kB / 467.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.09825, allocations: 15.98 kB / 467.3 MB, free: 9.223 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.774e-05/0.09833, allocations: 125.7 kB / 467.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/0.09837, allocations: 12.16 kB / 467.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.523e-05/0.0984, allocations: 8.25 kB / 467.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.09841, allocations: 3.984 kB / 467.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.09842, allocations: 4 kB / 467.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.09843, allocations: 0 / 467.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.09861, allocations: 197.5 kB / 467.7 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.09862, allocations: 4 kB / 467.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.561e-05/0.09869, allocations: 8 kB / 467.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.0987, allocations: 0 / 467.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.09871, allocations: 0 / 467.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.09872, allocations: 0 / 467.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.09873, allocations: 4 kB / 467.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001632/0.09889, allocations: 171.3 kB / 467.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.234e-05/0.09895, allocations: 85.05 kB / 467.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.09897, allocations: 4 kB / 467.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/0.09906, allocations: 4 kB / 468 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.368e-05/0.09908, allocations: 3.984 kB / 468 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.09909, allocations: 0 / 468 MB, free: 8.504 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.807e-05/0.09916, allocations: 113.4 kB / 468.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09917, allocations: 0 / 468.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002406/0.09941, allocations: 31.78 kB / 468.1 MB, free: 8.363 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003868/0.0998, allocations: 0.6967 MB / 468.8 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.19e-05/0.09991, allocations: 36.05 kB / 468.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.09992, allocations: 0 / 468.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.971e-05/0.09994, allocations: 15.94 kB / 468.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.1002, allocations: 8 kB / 468.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.1017, allocations: 1.606 MB / 470.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.1019, allocations: 0.7004 MB / 471.2 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.042e-05/0.102, allocations: 4.672 kB / 471.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.888e-05/0.102, allocations: 31.42 kB / 471.2 MB, free: 5.125 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.102, allocations: 4 kB / 471.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01222/0.1143, allocations: 1.831 MB / 473 MB, free: 3.371 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/0.1145, allocations: 190.5 kB / 473.2 MB, free: 3.109 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/1.783, allocations: 8 kB / 473.2 MB, free: 3.102 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)