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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 173.7 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.068/0.068, allocations: 8.714 MB / 16.79 MB, free: 3.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 221.5 MB / 240.9 MB, free: 13.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 94.41 kB / 293.9 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.59e-05/1.593e-05, allocations: 0 / 352.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 52.56 MB / 405.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3959/0.5139, allocations: 75.41 MB / 480.7 MB, free: 11.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.5141, allocations: 62.62 kB / 480.8 MB, free: 11.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0008762/0.515, allocations: 462 kB / 481.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.515, allocations: 0 / 481.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.515, allocations: 4.781 kB / 481.2 MB, free: 11.4 MB / 346.7 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.0002014/0.5153, allocations: 322.4 kB / 481.5 MB, free: 11.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.5153, allocations: 11.98 kB / 481.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.099e-05/0.5153, allocations: 9.078 kB / 481.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.618e-05/0.5154, allocations: 163.1 kB / 481.7 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.5155, allocations: 0 / 481.7 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.5155, allocations: 0 / 481.7 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.956e-05/0.5155, allocations: 11.36 kB / 481.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.826e-05/0.5156, allocations: 34.2 kB / 481.7 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.5156, allocations: 0 / 481.7 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.5156, allocations: 4.641 kB / 481.8 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.5157, allocations: 0 / 481.8 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.5158, allocations: 135.5 kB / 481.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.351e-05/0.5158, allocations: 31.17 kB / 481.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.513e-05/0.5159, allocations: 15.95 kB / 481.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.5159, allocations: 4.844 kB / 481.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/0.5159, allocations: 35.34 kB / 482 MB, free: 10.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.5159, allocations: 0 / 482 MB, free: 10.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001208/0.5161, allocations: 43.08 kB / 482 MB, free: 10.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.965e-05/0.5161, allocations: 51.41 kB / 482.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.778e-05/0.5161, allocations: 96.44 kB / 482.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.5162, allocations: 25.7 kB / 482.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.449e-05/0.5162, allocations: 85.61 kB / 482.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.5162, allocations: 14.03 kB / 482.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.5162, allocations: 0 / 482.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.5163, allocations: 318.2 kB / 482.6 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.164e-05/0.5163, allocations: 4 kB / 482.6 MB, free: 9.879 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.476e-06/0.5163, allocations: 8 kB / 482.6 MB, free: 9.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.78e-05/0.5163, allocations: 7.422 kB / 482.6 MB, free: 9.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.5163, allocations: 0 / 482.6 MB, free: 9.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.57e-05/0.5164, allocations: 44.98 kB / 482.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.5164, allocations: 8 kB / 482.7 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.5164, allocations: 3.984 kB / 482.7 MB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.5165, allocations: 2.781 kB / 482.7 MB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.507e-05/0.5165, allocations: 15.33 kB / 482.7 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.5166, allocations: 0 / 482.7 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.5166, allocations: 0 / 482.7 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-06/0.5166, allocations: 4 kB / 482.7 MB, free: 9.793 MB / 346.7 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 () * 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 4.17e-05/0.5166, allocations: 108.9 kB / 482.8 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 4.714e-05/0.5167, allocations: 40.38 kB / 482.8 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-06/0.5167, allocations: 0 / 482.8 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.35e-05/0.5167, allocations: 11.56 kB / 482.8 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.5167, allocations: 0 / 482.8 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.5167, allocations: 0 / 482.8 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.5168, allocations: 3.953 kB / 482.8 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.534e-05/0.5168, allocations: 130.2 kB / 483 MB, free: 9.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.5168, allocations: 4 kB / 483 MB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.385e-05/0.5169, allocations: 15.23 kB / 483 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.5169, allocations: 0 / 483 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.5169, allocations: 3.938 kB / 483 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5169, allocations: 0 / 483 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5169, allocations: 0 / 483 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.392e-05/0.517, allocations: 78.22 kB / 483.1 MB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.843e-05/0.5171, allocations: 80.3 kB / 483.2 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.5171, allocations: 4.094 kB / 483.2 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.82e-05/0.5171, allocations: 4 kB / 483.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.5171, allocations: 1.5 kB / 483.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.5171, allocations: 0 / 483.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.886e-05/0.5172, allocations: 83.27 kB / 483.2 MB, free: 9.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5172, allocations: 0 / 483.2 MB, free: 9.164 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002113/0.5174, allocations: 4 kB / 483.2 MB, free: 9.16 MB / 346.7 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 () * 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.0002239/0.5176, allocations: 0.6074 MB / 483.9 MB, free: 8.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.344e-05/0.5177, allocations: 15.69 kB / 483.9 MB, free: 8.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5177, allocations: 0 / 483.9 MB, free: 8.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.036e-05/0.5177, allocations: 4 kB / 483.9 MB, free: 8.516 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001005/0.5178, allocations: 7.922 kB / 483.9 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003574/0.5182, allocations: 154.3 kB / 484 MB, free: 8.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.5183, allocations: 0.6807 MB / 484.7 MB, free: 7.629 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.754e-05/0.5184, allocations: 3.984 kB / 484.7 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.5e-05/0.5184, allocations: 8.188 kB / 484.7 MB, free: 7.621 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5184, allocations: 0 / 484.7 MB, free: 7.621 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.5375, allocations: 0.5992 MB / 485.3 MB, free: 7.051 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.5377, allocations: 124.2 kB / 485.4 MB, free: 6.859 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.477/2.015, allocations: 0 / 485.4 MB, free: 6.859 MB / 346.7 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/linux/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)