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.001167/0.001167, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 239.2 MB, free: 4.605 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.001485/0.001485, allocations: 200.4 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03654/0.03654, allocations: 8.808 MB / 348.5 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 76.34 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.09572, allocations: 51.57 MB / 462.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002589/0.09835, allocations: 1.375 MB / 464.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.09961, allocations: 0.8605 MB / 465 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.092e-05/0.09965, allocations: 4 kB / 465 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002498/0.09993, allocations: 87.61 kB / 465.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.51e-05/0.1, allocations: 15.86 kB / 465.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007759/0.1008, allocations: 453 kB / 465.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.1009, allocations: 43.72 kB / 465.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.519e-05/0.101, allocations: 4 kB / 465.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.613e-05/0.101, allocations: 15.98 kB / 465.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.383e-05/0.1011, allocations: 7.938 kB / 465.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.137e-06/0.1011, allocations: 0 / 465.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.1013, allocations: 123.9 kB / 465.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.1013, allocations: 7.938 kB / 465.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.1014, allocations: 7.938 kB / 465.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002124/0.1016, allocations: 131.7 kB / 465.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1016, allocations: 4 kB / 465.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1016, allocations: 3.938 kB / 465.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1016, allocations: 0 / 465.9 MB, free: 11.08 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.0008546/0.1025, allocations: 425.2 kB / 466.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.1025, allocations: 12.03 kB / 466.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.621e-05/0.1026, allocations: 34.73 kB / 466.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.1026, allocations: 4.938 kB / 466.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.1027, allocations: 164.3 kB / 466.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1027, allocations: 4.375 kB / 466.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.1027, allocations: 8.312 kB / 466.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.1029, allocations: 57.8 kB / 466.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1029, allocations: 0 / 466.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.1029, allocations: 0 / 466.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1029, allocations: 4 kB / 466.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.157e-05/0.103, allocations: 35.98 kB / 466.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001798/0.1032, allocations: 189.6 kB / 466.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.1034, allocations: 70.55 kB / 466.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.489e-05/0.1034, allocations: 28.92 kB / 466.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.1035, allocations: 0 / 466.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.1035, allocations: 38.5 kB / 466.9 MB, free: 9.859 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 7.91e-07/0.1035, allocations: 3.938 kB / 466.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002194/0.1037, allocations: 101.7 kB / 467 MB, free: 9.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.1038, allocations: 55.39 kB / 467.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.266e-05/0.1038, allocations: 101.9 kB / 467.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.1039, allocations: 25.7 kB / 467.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.1039, allocations: 88.08 kB / 467.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.1039, allocations: 27.64 kB / 467.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.104, allocations: 13.72 kB / 467.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.1042, allocations: 322.8 kB / 467.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.847e-05/0.1042, allocations: 23.94 kB / 467.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.372e-05/0.1042, allocations: 20 kB / 467.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.566e-05/0.1043, allocations: 48.84 kB / 467.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1043, allocations: 4 kB / 467.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001237/0.1045, allocations: 77.62 kB / 467.8 MB, free: 8.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.1045, allocations: 6.031 kB / 467.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1045, allocations: 0 / 467.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.1045, allocations: 0 / 467.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1046, allocations: 11.94 kB / 467.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-06/0.1046, allocations: 0 / 467.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.712e-05/0.1047, allocations: 11.91 kB / 467.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.1047, allocations: 4 kB / 467.9 MB, free: 8.871 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 0.0001656/0.1049, allocations: 117.8 kB / 468 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.1049, allocations: 7.938 kB / 468 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.1051, allocations: 98.05 kB / 468.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1051, allocations: 0 / 468.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1051, allocations: 0 / 468.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1051, allocations: 0.6875 kB / 468.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.1053, allocations: 193.6 kB / 468.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1053, allocations: 3.984 kB / 468.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.241e-05/0.1054, allocations: 19.88 kB / 468.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1054, allocations: 0 / 468.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.1054, allocations: 4 kB / 468.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1054, allocations: 0 / 468.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1054, allocations: 0 / 468.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.1056, allocations: 113 kB / 468.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.1057, allocations: 100.9 kB / 468.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.1057, allocations: 0 / 468.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.724e-05/0.1058, allocations: 0 / 468.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.915e-05/0.1058, allocations: 11.94 kB / 468.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.1058, allocations: 0 / 468.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.701e-05/0.1058, allocations: 83.27 kB / 468.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.035e-06/0.1059, allocations: 0 / 468.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001977/0.1061, allocations: 23.88 kB / 468.6 MB, free: 8.004 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.0005347/0.1066, allocations: 0.6554 MB / 469.3 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.1068, allocations: 63.92 kB / 469.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1068, allocations: 0 / 469.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.094e-05/0.1068, allocations: 28 kB / 469.4 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.107, allocations: 7.984 kB / 469.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004373/0.1074, allocations: 206.2 kB / 469.6 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.1077, allocations: 0.6884 MB / 470.3 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.235e-05/0.1078, allocations: 7.984 kB / 470.3 MB, free: 6.258 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/0.1078, allocations: 11.44 kB / 470.3 MB, free: 6.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1078, allocations: 0 / 470.3 MB, free: 6.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.1262, allocations: 1.904 MB / 472.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/7.763, allocations: 10.5 kB / 472.2 MB, free: 4.398 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)