Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.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.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",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.001389/0.001389, allocations: 180.9 kB / 7.651 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.06556/0.06556, allocations: 8.719 MB / 16.79 MB, free: 3.387 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.415/1.415, allocations: 221.5 MB / 240.9 MB, free: 13.21 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.0009241/0.0009241, allocations: 94.92 kB / 293.9 MB, free: 7.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.74e-05/1.744e-05, allocations: 0 / 352.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1545, allocations: 52.56 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3342/0.4888, allocations: 75.41 MB / 480.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000177/0.489, allocations: 56.3 kB / 480.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0007186/0.4897, allocations: 442.8 kB / 481.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4897, allocations: 0 / 481.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.4897, allocations: 0 / 481.2 MB, free: 11.16 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.0001879/0.4899, allocations: 322.4 kB / 481.5 MB, free: 10.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.49, allocations: 13.67 kB / 481.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.999e-05/0.49, allocations: 9.578 kB / 481.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.23e-05/0.4901, allocations: 167.1 kB / 481.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.4901, allocations: 0 / 481.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.4902, allocations: 0 / 481.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.673e-05/0.4902, allocations: 5.25 kB / 481.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.835e-05/0.4903, allocations: 29.7 kB / 481.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.074e-06/0.4903, allocations: 0 / 481.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.4903, allocations: 8.516 kB / 481.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.4903, allocations: 0.6562 kB / 481.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.4904, allocations: 136 kB / 481.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.479e-05/0.4905, allocations: 33.78 kB / 481.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.632e-05/0.4905, allocations: 16.84 kB / 481.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.4905, allocations: 0 / 481.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.499e-05/0.4906, allocations: 35.56 kB / 481.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.4906, allocations: 0 / 481.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001004/0.4907, allocations: 37.98 kB / 482 MB, free: 10.24 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.678e-05/0.4907, allocations: 59.39 kB / 482 MB, free: 10.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.562e-05/0.4908, allocations: 95.52 kB / 482.1 MB, free: 10.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.023e-06/0.4908, allocations: 25.7 kB / 482.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.042e-05/0.4908, allocations: 84.14 kB / 482.2 MB, free: 9.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.4908, allocations: 13.66 kB / 482.3 MB, free: 9.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/0.4908, allocations: 0 / 482.3 MB, free: 9.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.513e-05/0.4909, allocations: 320.2 kB / 482.6 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.169e-05/0.4909, allocations: 4 kB / 482.6 MB, free: 9.633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.034e-05/0.4909, allocations: 10.27 kB / 482.6 MB, free: 9.629 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.583e-05/0.4909, allocations: 4 kB / 482.6 MB, free: 9.625 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.491, allocations: 0 / 482.6 MB, free: 9.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.309e-05/0.491, allocations: 56.73 kB / 482.6 MB, free: 9.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.491, allocations: 5.031 kB / 482.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.491, allocations: 0 / 482.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.4911, allocations: 0 / 482.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.058e-05/0.4912, allocations: 9.312 kB / 482.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.4912, allocations: 0 / 482.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/0.4912, allocations: 0 / 482.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.4912, allocations: 4 kB / 482.7 MB, free: 9.555 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.771e-05/0.4913, allocations: 108.9 kB / 482.8 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 4.292e-05/0.4913, allocations: 45.44 kB / 482.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-06/0.4913, allocations: 4 kB / 482.8 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.489e-05/0.4913, allocations: 4.125 kB / 482.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.4914, allocations: 5.109 kB / 482.8 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4914, allocations: 0 / 482.8 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.4914, allocations: 3.953 kB / 482.8 MB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.195e-05/0.4914, allocations: 128.8 kB / 482.9 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.4914, allocations: 1.312 kB / 482.9 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.502e-05/0.4915, allocations: 11.98 kB / 483 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.4915, allocations: 0 / 483 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.4915, allocations: 0 / 483 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4915, allocations: 8 kB / 483 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4915, allocations: 0 / 483 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.4916, allocations: 80.5 kB / 483 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.412e-05/0.4917, allocations: 81.14 kB / 483.1 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.4917, allocations: 0.8438 kB / 483.1 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.697e-05/0.4917, allocations: 4.438 kB / 483.1 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.4917, allocations: 3.984 kB / 483.1 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.4918, allocations: 64 / 483.1 MB, free: 9.004 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.196e-05/0.4918, allocations: 86.09 kB / 483.2 MB, free: 8.922 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4918, allocations: 0 / 483.2 MB, free: 8.922 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00021/0.492, allocations: 4 kB / 483.2 MB, free: 8.918 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.0002122/0.4922, allocations: 0.6031 MB / 483.8 MB, free: 8.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.313e-05/0.4923, allocations: 19.55 kB / 483.8 MB, free: 8.277 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4923, allocations: 5.688 kB / 483.9 MB, free: 8.273 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.037e-05/0.4923, allocations: 4 kB / 483.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001022/0.4924, allocations: 3.938 kB / 483.9 MB, free: 8.266 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002543/0.4927, allocations: 98.83 kB / 484 MB, free: 8.137 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.4928, allocations: 0.6807 MB / 484.6 MB, free: 7.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.413e-05/0.4928, allocations: 0 / 484.6 MB, free: 7.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.949e-05/0.4928, allocations: 7.438 kB / 484.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.4929, allocations: 4 kB / 484.6 MB, free: 7.422 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01718/0.51, allocations: 0.5908 MB / 485.2 MB, free: 6.859 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/0.5102, allocations: 125 kB / 485.4 MB, free: 6.668 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.428/1.938, allocations: 0 / 485.4 MB, free: 6.668 MB / 346.7 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)