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.01206/0.01206, allocations: 168 kB / 15.13 MB, free: 6.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0929/0.0929, allocations: 8.804 MB / 24.67 MB, free: 4.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.431/2.431, allocations: 223.2 MB / 250.8 MB, free: 6.559 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.001305/0.001305, allocations: 101.9 kB / 304.1 MB, free: 4.035 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006683/0.0006685, allocations: 12 kB / 367.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5213/0.522, allocations: 52.54 MB / 419.8 MB, free: 48.1 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.0007888/0.5228, allocations: 217.9 kB / 420 MB, free: 47.95 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001554/0.523, allocations: 26.72 kB / 420 MB, free: 47.93 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.747e-05/0.523, allocations: 0 / 420 MB, free: 47.93 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.237e-05/0.5231, allocations: 0 / 420 MB, free: 47.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 4.494e-05/0.5231, allocations: 0 / 420 MB, free: 47.93 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001345/0.5233, allocations: 2.906 kB / 420 MB, free: 47.93 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 7.443e-05/0.5234, allocations: 15.95 kB / 420 MB, free: 47.92 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.994e-05/0.5234, allocations: 1.469 kB / 420 MB, free: 47.92 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.5235, allocations: 2.641 kB / 420 MB, free: 47.92 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.021e-05/0.5235, allocations: 7.094 kB / 420.1 MB, free: 47.92 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.5236, allocations: 0.5 kB / 420.1 MB, free: 47.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.348e-06/0.5236, allocations: 1.188 kB / 420.1 MB, free: 47.92 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.758e-05/0.5236, allocations: 6.859 kB / 420.1 MB, free: 47.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.125e-05/0.5236, allocations: 29.64 kB / 420.1 MB, free: 47.88 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 3.909e-05/0.5237, allocations: 6.875 kB / 420.1 MB, free: 47.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.5237, allocations: 0 / 420.1 MB, free: 47.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.5237, allocations: 1.656 kB / 420.1 MB, free: 47.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.5237, allocations: 0 / 420.1 MB, free: 47.88 MB / 330.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.0003519/0.5241, allocations: 315.9 kB / 420.4 MB, free: 47.53 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.5242, allocations: 10.12 kB / 420.4 MB, free: 47.53 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.959e-05/0.5242, allocations: 31.36 kB / 420.5 MB, free: 47.49 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.5242, allocations: 13.97 kB / 420.5 MB, free: 47.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.5244, allocations: 168.1 kB / 420.6 MB, free: 47.28 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.5244, allocations: 2.656 kB / 420.6 MB, free: 47.28 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.5244, allocations: 6.047 kB / 420.6 MB, free: 47.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.5245, allocations: 36.67 kB / 420.7 MB, free: 47.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.5246, allocations: 1.031 kB / 420.7 MB, free: 47.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.5246, allocations: 0 / 420.7 MB, free: 47.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.5246, allocations: 4.703 kB / 420.7 MB, free: 47.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.758e-05/0.5247, allocations: 10.36 kB / 420.7 MB, free: 47.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001794/0.5248, allocations: 154.5 kB / 420.8 MB, free: 47.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.877e-05/0.525, allocations: 38.33 kB / 420.9 MB, free: 47.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.347e-05/0.525, allocations: 16.16 kB / 420.9 MB, free: 47 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.525, allocations: 1.031 kB / 420.9 MB, free: 47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.5251, allocations: 32.67 kB / 420.9 MB, free: 46.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 1.463e-06/0.5251, allocations: 0.5312 kB / 420.9 MB, free: 46.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001909/0.5253, allocations: 47.22 kB / 421 MB, free: 46.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.5253, allocations: 53.14 kB / 421 MB, free: 46.86 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.386e-05/0.5254, allocations: 106.7 kB / 421.1 MB, free: 46.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.185e-06/0.5254, allocations: 25.7 kB / 421.2 MB, free: 46.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.377e-05/0.5255, allocations: 81.23 kB / 421.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.332e-05/0.5255, allocations: 10.03 kB / 421.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.5255, allocations: 4.938 kB / 421.2 MB, free: 46.63 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.76e-05/0.5256, allocations: 317.2 kB / 421.6 MB, free: 46.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.34e-05/0.5256, allocations: 6.766 kB / 421.6 MB, free: 46.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.863e-05/0.5257, allocations: 3.844 kB / 421.6 MB, free: 46.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.98e-05/0.5257, allocations: 8.891 kB / 421.6 MB, free: 46.31 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5257, allocations: 1.156 kB / 421.6 MB, free: 46.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001025/0.5258, allocations: 44.8 kB / 421.6 MB, free: 46.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.5258, allocations: 6.391 kB / 421.6 MB, free: 46.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.5259, allocations: 0 / 421.6 MB, free: 46.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.5259, allocations: 5.031 kB / 421.6 MB, free: 46.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.526, allocations: 9.422 kB / 421.6 MB, free: 46.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.526, allocations: 0.5625 kB / 421.6 MB, free: 46.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.73e-05/0.5261, allocations: 12.42 kB / 421.7 MB, free: 46.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.5261, allocations: 5.125 kB / 421.7 MB, free: 46.26 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.157e-05/0.5262, allocations: 115.8 kB / 421.8 MB, free: 46.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.5262, allocations: 1.703 kB / 421.8 MB, free: 46.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.212e-05/0.5262, allocations: 9.234 kB / 421.8 MB, free: 46.13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5262, allocations: 0 / 421.8 MB, free: 46.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.5263, allocations: 1.156 kB / 421.8 MB, free: 46.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.5263, allocations: 4.562 kB / 421.8 MB, free: 46.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.055e-05/0.5264, allocations: 165.5 kB / 422 MB, free: 45.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.5264, allocations: 0.6562 kB / 422 MB, free: 45.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.5265, allocations: 8.406 kB / 422 MB, free: 45.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.5265, allocations: 0 / 422 MB, free: 45.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.547e-06/0.5265, allocations: 1.672 kB / 422 MB, free: 45.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5265, allocations: 0 / 422 MB, free: 45.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.5265, allocations: 1.281 kB / 422 MB, free: 45.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001565/0.5267, allocations: 81.48 kB / 422 MB, free: 45.85 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.634e-05/0.5268, allocations: 82.88 kB / 422.1 MB, free: 45.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.5268, allocations: 1.891 kB / 422.1 MB, free: 45.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.857e-05/0.5268, allocations: 0 / 422.1 MB, free: 45.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.25e-05/0.5269, allocations: 6.719 kB / 422.1 MB, free: 45.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.5269, allocations: 0.7188 kB / 422.1 MB, free: 45.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.686e-05/0.5269, allocations: 78.77 kB / 422.2 MB, free: 45.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5269, allocations: 0 / 422.2 MB, free: 45.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003185/0.5273, allocations: 3.781 kB / 422.2 MB, free: 45.67 MB / 330.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 () * 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 (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.0003305/0.5276, allocations: 0.6108 MB / 422.8 MB, free: 45.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.832e-05/0.5277, allocations: 21.36 kB / 422.8 MB, free: 45.05 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.5277, allocations: 0 / 422.8 MB, free: 45.05 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.462e-05/0.5278, allocations: 6.594 kB / 422.9 MB, free: 45.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.5281, allocations: 7.438 kB / 422.9 MB, free: 45.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006511/0.5287, allocations: 363.9 kB / 423.2 MB, free: 44.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.5289, allocations: 0.6761 MB / 423.9 MB, free: 44.01 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.441e-05/0.5289, allocations: 1.641 kB / 423.9 MB, free: 44.01 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.5289, allocations: 9.656 kB / 423.9 MB, free: 44.01 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.529, allocations: 0 / 423.9 MB, free: 44.01 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.5463, allocations: 0.8946 MB / 424.8 MB, free: 43.87 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/0.5466, allocations: 177 kB / 425 MB, free: 43.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.655/3.201, allocations: 3.938 kB / 425 MB, free: 43.62 MB / 330.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)