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.0007884/0.0007886, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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: 223.3 MB / 239.4 MB, free: 5.508 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.0009743/0.0009741, allocations: 180.5 kB / 290.6 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03286/0.03286, allocations: 8.806 MB / 350.5 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003545, allocations: 11.44 kB / 413.9 MB, free: 42.74 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.0934, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.0007752/0.09422, allocations: 242.3 kB / 466.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001441/0.09438, allocations: 19.95 kB / 466.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.548e-05/0.09442, allocations: 0 / 466.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.708e-05/0.09444, allocations: 3.938 kB / 466.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.892e-05/0.0945, allocations: 0 / 466.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001264/0.09463, allocations: 7.984 kB / 466.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.611e-05/0.0947, allocations: 11.94 kB / 466.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.574e-05/0.09476, allocations: 4 kB / 466.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.399e-05/0.09479, allocations: 3.938 kB / 466.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.064e-05/0.09487, allocations: 15.98 kB / 466.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.09489, allocations: 0 / 466.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.351e-05/0.09491, allocations: 4 kB / 466.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.09494, allocations: 7.922 kB / 466.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.805e-05/0.09498, allocations: 29.7 kB / 466.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.367e-05/0.09504, allocations: 3.938 kB / 466.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.09505, allocations: 11.92 kB / 466.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09506, allocations: 0 / 466.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.09507, allocations: 0 / 466.8 MB, free: 12.67 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.000384/0.09546, allocations: 323.8 kB / 467.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.09552, allocations: 16.03 kB / 467.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.09556, allocations: 30.75 kB / 467.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.402e-05/0.09559, allocations: 4.922 kB / 467.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.09573, allocations: 164.4 kB / 467.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.09575, allocations: 8.375 kB / 467.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.09577, allocations: 384 / 467.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.0959, allocations: 42.19 kB / 467.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.09591, allocations: 3.938 kB / 467.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.09593, allocations: 0 / 467.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.09594, allocations: 0 / 467.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.977e-05/0.09598, allocations: 15.94 kB / 467.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.09617, allocations: 157.7 kB / 467.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.373e-05/0.09625, allocations: 34.61 kB / 467.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.827e-05/0.09629, allocations: 8.859 kB / 467.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.0963, allocations: 0 / 467.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.09633, allocations: 38.56 kB / 467.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.21e-07/0.09634, allocations: 4 kB / 467.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001478/0.0965, allocations: 57.56 kB / 467.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.09655, allocations: 51.41 kB / 467.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.971e-05/0.09663, allocations: 97.84 kB / 467.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.09665, allocations: 29.7 kB / 467.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.922e-05/0.0967, allocations: 84.08 kB / 468 MB, free: 11.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.09674, allocations: 7.906 kB / 468 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.143e-05/0.09677, allocations: 9.719 kB / 468 MB, free: 11.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.09689, allocations: 318.8 kB / 468.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.892e-05/0.09692, allocations: 7.984 kB / 468.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.225e-05/0.09694, allocations: 4 kB / 468.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.065e-05/0.09698, allocations: 21.33 kB / 468.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.09699, allocations: 0 / 468.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.608e-05/0.09706, allocations: 53.61 kB / 468.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.09708, allocations: 7.938 kB / 468.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.0971, allocations: 4 kB / 468.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.09711, allocations: 0 / 468.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.025e-05/0.09721, allocations: 8 kB / 468.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.09723, allocations: 4 kB / 468.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.008e-05/0.09725, allocations: 7.922 kB / 468.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-06/0.09726, allocations: 0 / 468.4 MB, free: 10.84 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.701e-05/0.09735, allocations: 114.4 kB / 468.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.09737, allocations: 11.84 kB / 468.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.073e-05/0.0974, allocations: 3.5 kB / 468.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.0974, allocations: 0 / 468.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.09741, allocations: 0 / 468.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.09742, allocations: 0 / 468.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.09755, allocations: 157.7 kB / 468.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.09756, allocations: 4 kB / 468.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-05/0.09762, allocations: 7.938 kB / 468.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.09764, allocations: 7.938 kB / 468.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.09765, allocations: 0 / 468.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.09766, allocations: 7.922 kB / 468.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.09766, allocations: 0 / 468.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.09781, allocations: 73.12 kB / 468.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.505e-05/0.09788, allocations: 81.17 kB / 468.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.0979, allocations: 3.938 kB / 468.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.644e-05/0.09793, allocations: 4.031 kB / 468.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.717e-05/0.09795, allocations: 0 / 468.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.09795, allocations: 0 / 468.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.968e-05/0.09801, allocations: 87.27 kB / 469 MB, free: 10.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09802, allocations: 3.938 kB / 469 MB, free: 10.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001714/0.09819, allocations: 4 kB / 469 MB, free: 10.18 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 (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.0003726/0.09857, allocations: 0.6123 MB / 469.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.199e-05/0.09866, allocations: 19.98 kB / 469.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.09867, allocations: 0 / 469.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.513e-05/0.09869, allocations: 7.938 kB / 469.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.09884, allocations: 5.719 kB / 469.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.09988, allocations: 1.211 MB / 470.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.1001, allocations: 0.677 MB / 471.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.471e-05/0.1001, allocations: 4 kB / 471.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.1002, allocations: 11.44 kB / 471.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1002, allocations: 4 kB / 471.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0101/0.1103, allocations: 0.9196 MB / 472.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/0.1106, allocations: 185.9 kB / 472.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.566/1.677, allocations: 0 / 472.6 MB, free: 6.418 MB / 302.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)