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.006948/0.006948, allocations: 102.6 kB / 15.73 MB, free: 6.496 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.432/1.432, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001575/0.001574, allocations: 187.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03659/0.03659, allocations: 8.794 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 79.88 kB / 463.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1088, allocations: 51.57 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.003493/0.1123, allocations: 1.791 MB / 0.5047 GB, free: 8.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008937/0.1132, allocations: 466.8 kB / 0.5051 GB, free: 7.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.1134, allocations: 0 / 0.5051 GB, free: 7.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.1135, allocations: 19.84 kB / 0.5051 GB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.1137, allocations: 27.72 kB / 0.5051 GB, free: 7.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.1139, allocations: 27.91 kB / 0.5052 GB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002027/0.1141, allocations: 123.5 kB / 0.5053 GB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1142, allocations: 42.92 kB / 0.5053 GB, free: 7.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.617e-05/0.1143, allocations: 43.86 kB / 0.5054 GB, free: 7.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.1145, allocations: 55.72 kB / 0.5054 GB, free: 7.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.699e-05/0.1145, allocations: 8 kB / 0.5054 GB, free: 7.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.352e-05/0.1145, allocations: 12 kB / 0.5054 GB, free: 7.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.249e-05/0.1146, allocations: 27.91 kB / 0.5055 GB, free: 7.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.223e-05/0.1146, allocations: 59.73 kB / 0.5055 GB, free: 7.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.1148, allocations: 119.9 kB / 0.5056 GB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1148, allocations: 0 / 0.5056 GB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1148, allocations: 0 / 0.5056 GB, free: 7.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.1148, allocations: 0 / 0.5056 GB, free: 7.195 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.0006425/0.1155, allocations: 411 kB / 0.506 GB, free: 6.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.1156, allocations: 8.031 kB / 0.506 GB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.762e-05/0.1156, allocations: 50.73 kB / 0.5061 GB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/0.1157, allocations: 12.84 kB / 0.5061 GB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.116, allocations: 200.1 kB / 0.5063 GB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.116, allocations: 12.38 kB / 0.5063 GB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.628e-05/0.116, allocations: 8.375 kB / 0.5063 GB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.1162, allocations: 109.7 kB / 0.5064 GB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1163, allocations: 0 / 0.5064 GB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.1163, allocations: 4 kB / 0.5064 GB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1163, allocations: 7.984 kB / 0.5064 GB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.1164, allocations: 63.91 kB / 0.5065 GB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008096/0.1172, allocations: 498.2 kB / 0.507 GB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.1174, allocations: 50.5 kB / 0.507 GB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.374e-05/0.1174, allocations: 24.94 kB / 0.507 GB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.1174, allocations: 0 / 0.507 GB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.1174, allocations: 30.56 kB / 0.5071 GB, free: 5.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.1174, allocations: 0 / 0.5071 GB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001703/0.1176, allocations: 65.59 kB / 0.5071 GB, free: 5.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.1177, allocations: 51.41 kB / 0.5072 GB, free: 5.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.1178, allocations: 146.9 kB / 0.5073 GB, free: 5.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1178, allocations: 29.64 kB / 0.5073 GB, free: 5.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.512e-05/0.1179, allocations: 124 kB / 0.5075 GB, free: 5.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.1179, allocations: 15.8 kB / 0.5075 GB, free: 5.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-05/0.118, allocations: 21.72 kB / 0.5075 GB, free: 5.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1181, allocations: 322.8 kB / 0.5078 GB, free: 4.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.944e-05/0.1181, allocations: 12 kB / 0.5078 GB, free: 4.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.712e-05/0.1182, allocations: 34.55 kB / 0.5079 GB, free: 4.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.84e-05/0.1182, allocations: 54.52 kB / 0.5079 GB, free: 4.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1182, allocations: 4 kB / 0.5079 GB, free: 4.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000125/0.1184, allocations: 81.53 kB / 0.508 GB, free: 4.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.1184, allocations: 4 kB / 0.508 GB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1184, allocations: 4 kB / 0.508 GB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1184, allocations: 0 / 0.508 GB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.1185, allocations: 15.98 kB / 0.508 GB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.1185, allocations: 0 / 0.508 GB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.868e-05/0.1186, allocations: 15.94 kB / 0.508 GB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.1186, allocations: 4 kB / 0.508 GB, free: 4.484 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.952e-05/0.1187, allocations: 125.7 kB / 0.5081 GB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.1187, allocations: 7.906 kB / 0.5082 GB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.389e-05/0.1188, allocations: 4.25 kB / 0.5082 GB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1188, allocations: 0 / 0.5082 GB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1188, allocations: 3.984 kB / 0.5082 GB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1188, allocations: 3.938 kB / 0.5082 GB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.119, allocations: 193.6 kB / 0.5083 GB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.119, allocations: 8 kB / 0.5084 GB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.416e-05/0.1191, allocations: 19.98 kB / 0.5084 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1191, allocations: 0 / 0.5084 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.1191, allocations: 0 / 0.5084 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1191, allocations: 0 / 0.5084 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1191, allocations: 0 / 0.5084 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.1193, allocations: 163.4 kB / 0.5085 GB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.1194, allocations: 93.27 kB / 0.5086 GB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.1194, allocations: 4.062 kB / 0.5086 GB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.41e-05/0.1195, allocations: 4 kB / 0.5086 GB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.1195, allocations: 3.984 kB / 0.5086 GB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.1195, allocations: 0 / 0.5086 GB, free: 3.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.944e-05/0.1196, allocations: 117.3 kB / 0.5087 GB, free: 3.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.1196, allocations: 0 / 0.5087 GB, free: 3.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002561/0.1199, allocations: 27.78 kB / 0.5088 GB, free: 3.621 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 (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.000394/0.1203, allocations: 0.6929 MB / 0.5094 GB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.1204, allocations: 35.92 kB / 0.5095 GB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1204, allocations: 0 / 0.5095 GB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.232e-05/0.1204, allocations: 15.98 kB / 0.5095 GB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.1207, allocations: 8 kB / 0.5095 GB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.1224, allocations: 1.578 MB / 0.511 GB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.1227, allocations: 0.7002 MB / 0.5117 GB, free: 456 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.917e-05/0.1227, allocations: 4.781 kB / 0.5117 GB, free: 452 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.51e-05/0.1228, allocations: 35.36 kB / 0.5118 GB, free: 416 kB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1228, allocations: 3.938 kB / 0.5118 GB, free: 412 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.141, allocations: 2.024 MB / 0.5137 GB, free: 14.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.436/7.577, allocations: 8.047 kB / 0.5138 GB, free: 14.45 MB / 366.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)