Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002169/0.002169, allocations: 191.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.411/0.411, allocations: 54.94 MB / 324.7 MB, free: 0 / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 63.91 kB / 395.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1411, allocations: 59.59 MB / 455 MB, free: 88 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5243/0.6655, allocations: 193.9 MB / 0.6337 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0101/0.6756, allocations: 5.472 MB / 0.639 GB, free: 68 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001784/0.6775, allocations: 43.75 kB / 0.639 GB, free: 24 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.3432/1.021, allocations: 0.9335 MB / 0.64 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006571/1.027, allocations: 1.975 MB / 0.6419 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00361/1.031, allocations: 1.418 MB / 0.6433 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004916/1.036, allocations: 3.831 MB / 0.647 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/1.038, allocations: 1.133 MB / 0.6481 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004348/1.042, allocations: 1.613 MB / 0.6497 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002301/1.044, allocations: 1.147 MB / 0.6508 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003536/1.045, allocations: 159.6 kB / 0.651 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00294/1.048, allocations: 1.388 MB / 0.6523 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006224/1.048, allocations: 0.5418 MB / 0.6529 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001153/1.049, allocations: 0.855 MB / 0.6537 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004442/1.054, allocations: 2.91 MB / 0.6565 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/1.054, allocations: 3.188 kB / 0.6565 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.435e-06/1.054, allocations: 3.203 kB / 0.6565 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.513e-05/1.054, allocations: 0 / 0.6565 GB, free: 1.516 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 278 * Number of variables: 278 Notification: Performance of Generate backend data structure: time 0.005804/1.06, allocations: 1.977 MB / 0.6585 GB, free: 16.59 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/1.06, allocations: 10.84 kB / 0.6585 GB, free: 16.59 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00342/1.063, allocations: 0.5521 MB / 0.659 GB, free: 16.51 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002504/1.066, allocations: 1.079 MB / 0.6601 GB, free: 16.17 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001344/1.067, allocations: 306.5 kB / 0.6604 GB, free: 16.16 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/1.067, allocations: 106.5 kB / 0.6605 GB, free: 16.16 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004664/1.072, allocations: 1.728 MB / 0.6621 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/1.072, allocations: 7 kB / 0.6622 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001893/1.072, allocations: 54.55 kB / 0.6622 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-05/1.072, allocations: 52.78 kB / 0.6623 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004552/1.077, allocations: 1.629 MB / 0.6638 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/1.088, allocations: 6.166 MB / 0.6699 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/1.09, allocations: 0.642 MB / 0.6705 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009084/1.091, allocations: 372.4 kB / 0.6709 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.725e-05/1.091, allocations: 9.75 kB / 0.6709 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001622/1.092, allocations: 0.7449 MB / 0.6716 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=51): time 3.145e-06/1.092, allocations: 0.7812 kB / 0.6716 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=51): time 0.003423/1.096, allocations: 1.186 MB / 0.6727 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003925/1.096, allocations: 0.9277 MB / 0.6737 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003337/1.1, allocations: 1.603 MB / 0.6752 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002212/1.1, allocations: 43.02 kB / 0.6753 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006346/1.1, allocations: 0.6408 MB / 0.6759 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002056/1.101, allocations: 183.8 kB / 0.6761 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004685/1.101, allocations: 244.7 kB / 0.6763 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001282/1.101, allocations: 339 kB / 0.6766 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/1.103, allocations: 0.5119 MB / 0.6771 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002006/1.105, allocations: 1.041 MB / 0.6781 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002493/1.107, allocations: 1.235 MB / 0.6793 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/1.107, allocations: 3.062 kB / 0.6793 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003956/1.111, allocations: 1.542 MB / 0.6808 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.344e-05/1.111, allocations: 42.47 kB / 0.6809 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/1.111, allocations: 13.56 kB / 0.6809 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.024e-05/1.111, allocations: 15.91 kB / 0.6809 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.113, allocations: 264.7 kB / 0.6812 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.34e-05/1.113, allocations: 18.3 kB / 0.6812 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/1.116, allocations: 354.3 kB / 0.6815 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/1.116, allocations: 46.95 kB / 0.6816 GB, free: 9.195 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 1 * 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.0008306/1.116, allocations: 418.8 kB / 0.682 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003225/1.117, allocations: 151.5 kB / 0.6821 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003302/1.117, allocations: 154.7 kB / 0.6823 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/1.117, allocations: 6.5 kB / 0.6823 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/1.117, allocations: 6.094 kB / 0.6823 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/1.117, allocations: 3.422 kB / 0.6823 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004677/1.122, allocations: 3.316 MB / 0.6855 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/1.122, allocations: 13.78 kB / 0.6855 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006004/1.123, allocations: 112.9 kB / 0.6856 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-05/1.123, allocations: 11.58 kB / 0.6856 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.788e-05/1.123, allocations: 24.56 kB / 0.6857 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-05/1.123, allocations: 13.91 kB / 0.6857 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/1.123, allocations: 12.8 kB / 0.6857 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002904/1.126, allocations: 1.214 MB / 0.6869 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009916/1.127, allocations: 394.8 kB / 0.6873 GB, free: 7.254 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/1.127, allocations: 23.25 kB / 0.6873 GB, free: 7.254 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.128, allocations: 126.2 kB / 0.6874 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/1.128, allocations: 56.69 kB / 0.6875 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.676e-05/1.128, allocations: 30.86 kB / 0.6875 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001908/1.13, allocations: 1.13 MB / 0.6886 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/1.13, allocations: 0 / 0.6886 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001318/1.132, allocations: 375.1 kB / 0.6889 GB, free: 7.098 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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.0004841/1.132, allocations: 214.7 kB / 0.6891 GB, free: 7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002621/1.135, allocations: 1.17 MB / 0.6903 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.135, allocations: 4.656 kB / 0.6903 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008407/1.136, allocations: 479.3 kB / 0.6908 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003774/1.139, allocations: 0.8065 MB / 0.6915 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/1.143, allocations: 2.327 MB / 0.6938 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007485/1.144, allocations: 1.159 MB / 0.6949 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00174/1.146, allocations: 344.8 kB / 0.6953 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/1.146, allocations: 103.2 kB / 0.6954 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of SimCode: time 7.22e-07/1.146, allocations: 0 / 0.6954 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of Templates: time 0.0559/1.202, allocations: 30.32 MB / 0.725 GB, free: 9.898 MB / 0.545 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)