Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",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.0008592/0.0008593, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.365/1.365, allocations: 223.2 MB / 239 MB, free: 5.449 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.001162/0.001162, allocations: 184.5 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.0337/0.0337, allocations: 8.784 MB / 350.1 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003298/0.0003298, allocations: 13.81 kB / 413.3 MB, free: 42.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08098/0.08132, allocations: 52.56 MB / 465.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.001329/0.08269, allocations: 1.08 MB / 466.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009812/0.08368, allocations: 0.7561 MB / 467.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.652e-05/0.08372, allocations: 0 / 467.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.08394, allocations: 75.75 kB / 467.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.797e-05/0.084, allocations: 11.91 kB / 467.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006339/0.08464, allocations: 373.2 kB / 468.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.08477, allocations: 35.84 kB / 468.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.917e-05/0.08481, allocations: 0 / 468.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.646e-05/0.08487, allocations: 11.94 kB / 468.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.847e-05/0.08492, allocations: 15.94 kB / 468.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.08494, allocations: 4 kB / 468.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.08513, allocations: 107.9 kB / 468.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.08515, allocations: 7.922 kB / 468.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.08517, allocations: 29.7 kB / 468.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.08532, allocations: 88.05 kB / 468.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.08533, allocations: 0 / 468.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.08534, allocations: 3.984 kB / 468.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.768e-06/0.08535, allocations: 0 / 468.4 MB, free: 10.75 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007618/0.08612, allocations: 419.2 kB / 468.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.08616, allocations: 15.95 kB / 468.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.508e-05/0.0862, allocations: 38.56 kB / 468.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.191e-05/0.08623, allocations: 7.859 kB / 468.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.08633, allocations: 163.1 kB / 469.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.08635, allocations: 0 / 469.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.08637, allocations: 3.984 kB / 469.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.0865, allocations: 61.61 kB / 469.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.08652, allocations: 8 kB / 469.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.08654, allocations: 0 / 469.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.08655, allocations: 3.953 kB / 469.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.006e-05/0.08664, allocations: 31.98 kB / 469.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001731/0.08682, allocations: 177.6 kB / 469.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.08698, allocations: 66.62 kB / 469.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.336e-05/0.08704, allocations: 32.92 kB / 469.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.08706, allocations: 3.938 kB / 469.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.08709, allocations: 34.56 kB / 469.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.0871, allocations: 0 / 469.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002144/0.08732, allocations: 105.6 kB / 469.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.08736, allocations: 51.41 kB / 469.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.451e-05/0.08743, allocations: 105.8 kB / 469.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.08745, allocations: 25.7 kB / 469.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.442e-05/0.08748, allocations: 84.12 kB / 469.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.848e-05/0.08752, allocations: 19.75 kB / 469.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.08753, allocations: 4 kB / 469.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.08763, allocations: 314.8 kB / 470.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.829e-05/0.08768, allocations: 23.92 kB / 470.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.359e-05/0.08771, allocations: 16 kB / 470.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.503e-05/0.08776, allocations: 20.62 kB / 470.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.08777, allocations: 0 / 470.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001226/0.0879, allocations: 81.59 kB / 470.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.08792, allocations: 9.875 kB / 470.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.08794, allocations: 4.062 kB / 470.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.08796, allocations: 7.984 kB / 470.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.424e-05/0.08805, allocations: 11.94 kB / 470.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.08807, allocations: 0 / 470.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.06e-05/0.08811, allocations: 3.953 kB / 470.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.08813, allocations: 4 kB / 470.3 MB, free: 8.609 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 (6): * Single equations (assignments): 6 * 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 7.454e-05/0.08821, allocations: 113.8 kB / 470.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.958e-05/0.08823, allocations: 7.906 kB / 470.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001903/0.08843, allocations: 106 kB / 470.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.08844, allocations: 4 kB / 470.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.08845, allocations: 0 / 470.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.08846, allocations: 0 / 470.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.0886, allocations: 189.5 kB / 470.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.08861, allocations: 0 / 470.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.698e-05/0.0887, allocations: 11.98 kB / 470.8 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.08871, allocations: 4 kB / 470.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.08872, allocations: 3.938 kB / 470.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.08873, allocations: 0 / 470.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.08873, allocations: 0 / 470.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.0889, allocations: 125 kB / 470.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.265e-05/0.08894, allocations: 77.11 kB / 471 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.08896, allocations: 0 / 471 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.497e-05/0.08901, allocations: 8 kB / 471 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.08904, allocations: 3.984 kB / 471 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.08905, allocations: 4 kB / 471 MB, free: 7.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.58e-05/0.0891, allocations: 87.22 kB / 471.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08911, allocations: 0 / 471.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001942/0.08931, allocations: 12 kB / 471.1 MB, free: 7.762 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (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 Backend phase and start with SimCode phase: time 0.0004367/0.08975, allocations: 0.6714 MB / 471.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.08989, allocations: 48.22 kB / 471.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.0899, allocations: 0 / 471.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.222e-05/0.08996, allocations: 39.91 kB / 471.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.09011, allocations: 4 kB / 471.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004022/0.09051, allocations: 228.1 kB / 472.1 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.09078, allocations: 0.6869 MB / 472.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.306e-05/0.09082, allocations: 3.984 kB / 472.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.09087, allocations: 15.44 kB / 472.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of SimCode: time 1.553e-06/0.09088, allocations: 0 / 472.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/0.1019, allocations: 1.705 MB / 474.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/0.1021, allocations: 185.8 kB / 474.7 MB, free: 4.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/1.703, allocations: 0 / 474.7 MB, free: 4.16 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1) Environment - environmentSimulation: