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-master/package.mo", uses=false) 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) 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.0009034/0.0009035, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.325/1.325, allocations: 223.3 MB / 239.4 MB, free: 5.395 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.0009177/0.0009176, allocations: 172.6 kB / 290.6 MB, free: 2.07 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03281/0.03281, allocations: 8.804 MB / 350.5 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003899/0.0003901, allocations: 13.19 kB / 413.9 MB, free: 42.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09065, allocations: 52.56 MB / 466.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.001497/0.09219, allocations: 1.095 MB / 467.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.09349, allocations: 0.8218 MB / 468.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.837e-05/0.09352, allocations: 0 / 468.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.0938, allocations: 83.73 kB / 468.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.536e-05/0.09387, allocations: 7.922 kB / 468.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008823/0.09476, allocations: 430.4 kB / 468.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.09489, allocations: 39.84 kB / 468.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.624e-05/0.09494, allocations: 7.938 kB / 469 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.484e-05/0.09501, allocations: 11.94 kB / 469 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.282e-05/0.09506, allocations: 15.91 kB / 469 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.09508, allocations: 4 kB / 469 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.0953, allocations: 111.9 kB / 469.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.193e-05/0.09532, allocations: 7.938 kB / 469.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.241e-05/0.09536, allocations: 33.64 kB / 469.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003158/0.09568, allocations: 135.9 kB / 469.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.09569, allocations: 0 / 469.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.0957, allocations: 4 kB / 469.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.09571, allocations: 0 / 469.3 MB, free: 10.17 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.0008351/0.09655, allocations: 427.3 kB / 469.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.0966, allocations: 12.03 kB / 469.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.395e-05/0.09664, allocations: 30.75 kB / 469.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.389e-05/0.09667, allocations: 8.844 kB / 469.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.09679, allocations: 168.4 kB / 469.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.09681, allocations: 8.375 kB / 469.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.09683, allocations: 4.375 kB / 469.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.09697, allocations: 61.75 kB / 470 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.09698, allocations: 0 / 470 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.09699, allocations: 0 / 470 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.097, allocations: 0 / 470 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.38e-05/0.09709, allocations: 39.98 kB / 470 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001828/0.09728, allocations: 177.7 kB / 470.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.09745, allocations: 66.56 kB / 470.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.4e-05/0.09751, allocations: 28.97 kB / 470.3 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.09754, allocations: 0 / 470.3 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.09757, allocations: 42.5 kB / 470.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 7.91e-07/0.09757, allocations: 3.938 kB / 470.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002159/0.09779, allocations: 93.59 kB / 470.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.09783, allocations: 51.41 kB / 470.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.822e-05/0.09791, allocations: 109.8 kB / 470.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.09793, allocations: 29.7 kB / 470.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.09806, allocations: 88.14 kB / 470.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.192e-05/0.0981, allocations: 23.64 kB / 470.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/0.09814, allocations: 13.72 kB / 470.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.09825, allocations: 318.8 kB / 471 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.966e-05/0.09829, allocations: 15.98 kB / 471.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.607e-05/0.09834, allocations: 20 kB / 471.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.905e-05/0.09843, allocations: 48.8 kB / 471.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.09844, allocations: 0 / 471.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001281/0.09857, allocations: 86.25 kB / 471.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.09859, allocations: 8 kB / 471.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.0986, allocations: 0 / 471.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.398e-06/0.09862, allocations: 0 / 471.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.09872, allocations: 16.05 kB / 471.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.09873, allocations: 0 / 471.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.108e-05/0.09878, allocations: 0 / 471.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.09879, allocations: 4 kB / 471.2 MB, free: 7.977 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.088e-05/0.09887, allocations: 117.7 kB / 471.4 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.09896, allocations: 15.84 kB / 471.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.09916, allocations: 106 kB / 471.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.09917, allocations: 0 / 471.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.09918, allocations: 0 / 471.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.09918, allocations: 3.984 kB / 471.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.09934, allocations: 185.6 kB / 471.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.09935, allocations: 0 / 471.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.845e-05/0.09943, allocations: 15.94 kB / 471.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.09944, allocations: 0 / 471.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.09945, allocations: 4 kB / 471.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.09946, allocations: 11.92 kB / 471.7 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.09947, allocations: 0 / 471.7 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001526/0.09962, allocations: 109 kB / 471.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.686e-05/0.09967, allocations: 81.05 kB / 471.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.09969, allocations: 8 kB / 471.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.341e-05/0.09974, allocations: 0 / 471.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.432e-05/0.09977, allocations: 11.97 kB / 471.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-06/0.09978, allocations: 0 / 471.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.884e-05/0.09982, allocations: 87.28 kB / 472 MB, free: 7.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.09983, allocations: 0 / 472 MB, free: 7.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001909/0.1, allocations: 19.94 kB / 472 MB, free: 7.109 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003978/0.1004, allocations: 0.663 MB / 472.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000128/0.1006, allocations: 55.97 kB / 472.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1006, allocations: 0 / 472.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.883e-05/0.1006, allocations: 31.92 kB / 472.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.1008, allocations: 8 kB / 472.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004069/0.1012, allocations: 232.1 kB / 473 MB, free: 6.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/0.1014, allocations: 0.6848 MB / 473.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.845e-05/0.1015, allocations: 0 / 473.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.661e-05/0.1015, allocations: 23.42 kB / 473.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1015, allocations: 0 / 473.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01177/0.1133, allocations: 1.721 MB / 475.4 MB, free: 3.727 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/0.1136, allocations: 196.6 kB / 475.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.649/1.762, allocations: 0 / 475.6 MB, free: 3.473 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/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)