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-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.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.00609/0.00609, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.347/1.347, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001526/0.001526, allocations: 184.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03628/0.03628, allocations: 8.799 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 79.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09322, allocations: 51.55 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001502/0.09476, allocations: 0.5085 MB / 0.5034 GB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000129/0.09491, allocations: 31.89 kB / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.047e-05/0.09494, allocations: 0 / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.217e-05/0.09496, allocations: 0 / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.562e-05/0.09501, allocations: 7.922 kB / 0.5034 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001067/0.09514, allocations: 4 kB / 0.5034 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.512e-05/0.0952, allocations: 11.92 kB / 0.5034 GB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.285e-05/0.09525, allocations: 7.938 kB / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.983e-05/0.09527, allocations: 8 kB / 0.5034 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.542e-05/0.09532, allocations: 3.984 kB / 0.5035 GB, free: 9.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.09534, allocations: 4 kB / 0.5035 GB, free: 9.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.805e-06/0.09535, allocations: 0 / 0.5035 GB, free: 9.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.09537, allocations: 7.938 kB / 0.5035 GB, free: 9.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.283e-05/0.0954, allocations: 7.984 kB / 0.5035 GB, free: 9.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.704e-05/0.09546, allocations: 15.92 kB / 0.5035 GB, free: 9.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.09547, allocations: 0 / 0.5035 GB, free: 9.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09548, allocations: 0 / 0.5035 GB, free: 9.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.09549, allocations: 0 / 0.5035 GB, free: 9.398 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003527/0.09585, allocations: 323.7 kB / 0.5038 GB, free: 9.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.09589, allocations: 8.031 kB / 0.5038 GB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.473e-05/0.09593, allocations: 46.67 kB / 0.5038 GB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.071e-05/0.09596, allocations: 4.938 kB / 0.5039 GB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.09607, allocations: 160.4 kB / 0.504 GB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-06/0.09608, allocations: 384 / 0.504 GB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.09611, allocations: 4.375 kB / 0.504 GB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.229e-05/0.0962, allocations: 38.25 kB / 0.504 GB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.09621, allocations: 3.938 kB / 0.504 GB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.683e-06/0.09622, allocations: 0 / 0.504 GB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.09623, allocations: 0 / 0.504 GB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.216e-05/0.09627, allocations: 4 kB / 0.5041 GB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001418/0.09641, allocations: 157.7 kB / 0.5042 GB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.805e-05/0.09649, allocations: 46.53 kB / 0.5042 GB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.611e-05/0.09652, allocations: 12.86 kB / 0.5043 GB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.09654, allocations: 3.938 kB / 0.5043 GB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.09656, allocations: 30.56 kB / 0.5043 GB, free: 8.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.09657, allocations: 0 / 0.5043 GB, free: 8.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001361/0.09671, allocations: 57.66 kB / 0.5043 GB, free: 8.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.09675, allocations: 59.34 kB / 0.5044 GB, free: 8.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.876e-05/0.09682, allocations: 101.8 kB / 0.5045 GB, free: 8.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.09684, allocations: 25.7 kB / 0.5045 GB, free: 8.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.09688, allocations: 80.14 kB / 0.5046 GB, free: 8.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.311e-05/0.09692, allocations: 11.81 kB / 0.5046 GB, free: 8.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.09695, allocations: 13.72 kB / 0.5046 GB, free: 8.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.09706, allocations: 318.8 kB / 0.5049 GB, free: 7.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.541e-05/0.09708, allocations: 4 kB / 0.5049 GB, free: 7.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.171e-05/0.0971, allocations: 8 kB / 0.5049 GB, free: 7.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.835e-05/0.09714, allocations: 20.86 kB / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.09715, allocations: 0 / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.329e-05/0.09723, allocations: 57.62 kB / 0.505 GB, free: 7.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.09725, allocations: 7.938 kB / 0.505 GB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.09726, allocations: 0 / 0.505 GB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.09728, allocations: 0 / 0.505 GB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.93e-05/0.09737, allocations: 11.98 kB / 0.505 GB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.09738, allocations: 0 / 0.505 GB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.63e-05/0.0974, allocations: 0 / 0.505 GB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-06/0.09741, allocations: 4 kB / 0.505 GB, free: 7.57 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.865e-05/0.09749, allocations: 117.7 kB / 0.5052 GB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.058e-05/0.0975, allocations: 7.844 kB / 0.5052 GB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.107e-05/0.09753, allocations: 7.5 kB / 0.5052 GB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.09754, allocations: 4 kB / 0.5052 GB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.09754, allocations: 0 / 0.5052 GB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.09755, allocations: 0 / 0.5052 GB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.09765, allocations: 153.7 kB / 0.5053 GB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.09766, allocations: 0 / 0.5053 GB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.833e-05/0.09774, allocations: 15.98 kB / 0.5053 GB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.09775, allocations: 3.938 kB / 0.5053 GB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.09776, allocations: 0 / 0.5053 GB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.09777, allocations: 0 / 0.5053 GB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.09777, allocations: 4.453 kB / 0.5053 GB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.09789, allocations: 77.11 kB / 0.5054 GB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.09794, allocations: 85.08 kB / 0.5055 GB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.09796, allocations: 3.938 kB / 0.5055 GB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.979e-05/0.09798, allocations: 4.062 kB / 0.5055 GB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.572e-05/0.098, allocations: 7.922 kB / 0.5055 GB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-06/0.09801, allocations: 0 / 0.5055 GB, free: 6.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.972e-05/0.09805, allocations: 83.22 kB / 0.5056 GB, free: 6.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09805, allocations: 0 / 0.5056 GB, free: 6.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001803/0.09824, allocations: 8 kB / 0.5056 GB, free: 6.898 MB / 350.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 (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.000343/0.09859, allocations: 0.6201 MB / 0.5062 GB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.808e-05/0.09868, allocations: 16 kB / 0.5062 GB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.09868, allocations: 0 / 0.5062 GB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.706e-05/0.09871, allocations: 11.94 kB / 0.5062 GB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.09885, allocations: 5.547 kB / 0.5062 GB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009782/0.09983, allocations: 1.172 MB / 0.5074 GB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.1001, allocations: 0.6843 MB / 0.508 GB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.723e-05/0.1001, allocations: 0 / 0.508 GB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.1001, allocations: 11.44 kB / 0.5081 GB, free: 4.238 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1001, allocations: 0 / 0.5081 GB, free: 4.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.1167, allocations: 1.104 MB / 0.5091 GB, free: 3.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.441/7.558, allocations: 7.484 kB / 0.5091 GB, free: 3.195 MB / 350.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/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)