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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 171.9 kB / 7.647 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.04254/0.04254, allocations: 8.718 MB / 16.79 MB, free: 3.375 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.508/1.508, allocations: 221.5 MB / 240.9 MB, free: 13.13 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.0009716/0.0009716, allocations: 95.75 kB / 293.9 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.841e-05/1.844e-05, allocations: 4 kB / 352.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1175, allocations: 52.55 MB / 405.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3918/0.5093, allocations: 77.98 MB / 483.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.5096, allocations: 64.59 kB / 483.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004851/0.5144, allocations: 2.042 MB / 485.4 MB, free: 7.602 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.572e-06/0.5145, allocations: 0 / 485.4 MB, free: 7.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.5145, allocations: 0 / 485.4 MB, free: 7.602 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0003574/0.5148, allocations: 389 kB / 485.7 MB, free: 7.191 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.5149, allocations: 11.98 kB / 485.7 MB, free: 7.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.237e-05/0.515, allocations: 19.41 kB / 485.8 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.5152, allocations: 195.4 kB / 486 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.5152, allocations: 4 kB / 486 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.5152, allocations: 8 kB / 486 MB, free: 6.934 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001168/0.5153, allocations: 51.92 kB / 486 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.5155, allocations: 86.52 kB / 486.1 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.5155, allocations: 0 / 486.1 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.5155, allocations: 0 / 486.1 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.5155, allocations: 0 / 486.1 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006134/0.5162, allocations: 466.6 kB / 486.6 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.243e-05/0.5162, allocations: 41.11 kB / 486.6 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.794e-05/0.5163, allocations: 23.47 kB / 486.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.806e-06/0.5163, allocations: 0 / 486.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.5163, allocations: 30.56 kB / 486.7 MB, free: 6.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.5163, allocations: 0 / 486.7 MB, free: 6.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001395/0.5165, allocations: 60.98 kB / 486.7 MB, free: 6.207 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.692e-05/0.5165, allocations: 51.41 kB / 486.8 MB, free: 6.145 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.474e-05/0.5166, allocations: 116.2 kB / 486.9 MB, free: 6.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.076e-06/0.5166, allocations: 25.7 kB / 486.9 MB, free: 6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.326e-05/0.5166, allocations: 126.9 kB / 487 MB, free: 5.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.5167, allocations: 8.469 kB / 487 MB, free: 5.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-06/0.5167, allocations: 0 / 487 MB, free: 5.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.276e-05/0.5167, allocations: 322.1 kB / 487.3 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.423e-05/0.5168, allocations: 11.8 kB / 487.4 MB, free: 5.543 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.929e-05/0.5168, allocations: 36.91 kB / 487.4 MB, free: 5.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.612e-05/0.5168, allocations: 11.5 kB / 487.4 MB, free: 5.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5168, allocations: 3.984 kB / 487.4 MB, free: 5.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.207e-05/0.5169, allocations: 68.17 kB / 487.5 MB, free: 5.434 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.5169, allocations: 4 kB / 487.5 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.517, allocations: 8.875 kB / 487.5 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.517, allocations: 0 / 487.5 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.94e-05/0.5171, allocations: 19.31 kB / 487.5 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.5171, allocations: 8.016 kB / 487.5 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/0.5171, allocations: 11.84 kB / 487.5 MB, free: 5.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.5171, allocations: 3.938 kB / 487.5 MB, free: 5.387 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.853e-05/0.5172, allocations: 105 kB / 487.6 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.308e-05/0.5173, allocations: 49.25 kB / 487.7 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.5173, allocations: 7.906 kB / 487.7 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.443e-05/0.5173, allocations: 15.47 kB / 487.7 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5173, allocations: 0.8438 kB / 487.7 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5173, allocations: 0 / 487.7 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.5173, allocations: 4 kB / 487.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.5175, allocations: 160.6 kB / 487.9 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.5175, allocations: 0 / 487.9 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.166e-05/0.5175, allocations: 8.656 kB / 487.9 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.5175, allocations: 0 / 487.9 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.5176, allocations: 7.938 kB / 487.9 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.5176, allocations: 0 / 487.9 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.5176, allocations: 3.953 kB / 487.9 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001135/0.5177, allocations: 159.1 kB / 488 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.522e-05/0.5177, allocations: 89.03 kB / 488.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.5177, allocations: 0.6562 kB / 488.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.569e-05/0.5178, allocations: 4 kB / 488.1 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.238e-05/0.5178, allocations: 3.25 kB / 488.1 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.5179, allocations: 7.953 kB / 488.1 MB, free: 4.723 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.554e-05/0.5179, allocations: 99.14 kB / 488.2 MB, free: 4.633 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5179, allocations: 4 kB / 488.2 MB, free: 4.629 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002215/0.5181, allocations: 23.84 kB / 488.3 MB, free: 4.605 MB / 346.7 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 () * 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 (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.0002317/0.5184, allocations: 0.6844 MB / 489 MB, free: 3.902 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.601e-05/0.5185, allocations: 33.8 kB / 489 MB, free: 3.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.5185, allocations: 0 / 489 MB, free: 3.879 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.422e-05/0.5185, allocations: 15 kB / 489 MB, free: 3.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.5187, allocations: 10.92 kB / 489 MB, free: 3.859 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004526/0.5191, allocations: 214.2 kB / 489.2 MB, free: 3.641 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.5193, allocations: 0.7036 MB / 489.9 MB, free: 2.914 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.598e-05/0.5193, allocations: 15 kB / 489.9 MB, free: 2.902 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.786e-05/0.5194, allocations: 28.36 kB / 490 MB, free: 2.887 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5194, allocations: 0 / 490 MB, free: 2.887 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.539, allocations: 1.237 MB / 491.2 MB, free: 1.703 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/0.5392, allocations: 126.7 kB / 491.3 MB, free: 1.512 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.42/1.959, allocations: 0.6562 kB / 491.3 MB, free: 1.512 MB / 346.7 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/linux/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)