Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002005/0.002006, allocations: 172.7 kB / 15.95 MB, free: 208 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.541/1.541, allocations: 223.3 MB / 240 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.544/2.544, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003493, allocations: 8 kB / 0.8153 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7809/0.7813, allocations: 142.4 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02992/0.8113, allocations: 27.39 MB / 0.9812 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01768/0.8291, allocations: 7.664 MB / 0.9887 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003272/0.8324, allocations: 23.5 kB / 0.9887 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001857/0.8343, allocations: 305 kB / 0.989 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006821/0.8411, allocations: 1.078 MB / 0.99 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004087/0.8452, allocations: 0.9608 MB / 0.991 GB, free: 9.824 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006145/0.8514, allocations: 3.532 MB / 0.9944 GB, free: 6.512 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002263/0.8537, allocations: 1.082 MB / 0.9955 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003402/0.8571, allocations: 1.464 MB / 0.9969 GB, free: 3.945 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003435/0.8606, allocations: 1.562 MB / 0.9984 GB, free: 2.379 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0004569/0.861, allocations: 64 kB / 0.9985 GB, free: 2.316 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.8636, allocations: 0.8656 MB / 0.9993 GB, free: 1.449 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004515/0.8641, allocations: 322.8 kB / 0.9997 GB, free: 1.133 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0005702/0.8647, allocations: 249.1 kB / 0.9999 GB, free: 0.8828 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001987/0.8667, allocations: 1.537 MB / 1.001 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.8667, allocations: 4 kB / 1.001 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8667, allocations: 0 / 1.001 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.8667, allocations: 0 / 1.001 GB, free: 15.34 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002328/0.869, allocations: 1.344 MB / 1.003 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.8691, allocations: 12.03 kB / 1.003 GB, free: 13.93 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003062/0.8694, allocations: 154.4 kB / 1.003 GB, free: 13.78 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.871, allocations: 0.8566 MB / 1.004 GB, free: 12.87 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.8711, allocations: 81.31 kB / 1.004 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.8713, allocations: 120 kB / 1.004 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.8724, allocations: 0.6395 MB / 1.005 GB, free: 12 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.8724, allocations: 0 / 1.005 GB, free: 12 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.626e-05/0.8725, allocations: 24 kB / 1.005 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.8725, allocations: 12 kB / 1.005 GB, free: 11.97 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000915/0.8735, allocations: 480.8 kB / 1.005 GB, free: 11.5 MB / 0.7637 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004595/0.8781, allocations: 2.887 MB / 1.008 GB, free: 8.457 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005994/0.8787, allocations: 313.1 kB / 1.008 GB, free: 8.145 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.879, allocations: 165.3 kB / 1.008 GB, free: 7.98 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003133/0.8793, allocations: 340.7 kB / 1.009 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.8794, allocations: 38.84 kB / 1.009 GB, free: 7.527 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.8794, allocations: 0 / 1.009 GB, free: 7.527 MB / 0.7637 GB Notification: Performance of matching and sorting (n=33): time 0.001264/0.8806, allocations: 0.5439 MB / 1.009 GB, free: 6.977 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.8807, allocations: 51.41 kB / 1.009 GB, free: 6.914 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.8818, allocations: 0.8958 MB / 1.01 GB, free: 6 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.8819, allocations: 61.7 kB / 1.01 GB, free: 5.934 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005557/0.8825, allocations: 0.5382 MB / 1.011 GB, free: 5.383 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.8826, allocations: 106.4 kB / 1.011 GB, free: 5.277 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.8827, allocations: 16 kB / 1.011 GB, free: 5.262 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.8828, allocations: 326 kB / 1.011 GB, free: 4.938 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.8832, allocations: 181.2 kB / 1.011 GB, free: 4.762 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.8847, allocations: 1.143 MB / 1.012 GB, free: 3.254 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/0.8852, allocations: 302.8 kB / 1.013 GB, free: 2.957 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.8852, allocations: 0 / 1.013 GB, free: 2.957 MB / 0.7637 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001276/0.8865, allocations: 0.6461 MB / 1.013 GB, free: 2.309 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.8867, allocations: 153.8 kB / 1.013 GB, free: 2.125 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.8867, allocations: 0 / 1.013 GB, free: 2.125 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.8867, allocations: 11.94 kB / 1.013 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.8882, allocations: 247.6 kB / 1.014 GB, free: 1.871 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.8899, allocations: 2.954 MB / 1.017 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003427/0.8933, allocations: 0.7455 MB / 1.017 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.541e-05/0.8935, allocations: 27.98 kB / 1.017 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.8935, allocations: 4 kB / 1.017 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000969/0.8945, allocations: 0.4972 MB / 1.018 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.8945, allocations: 0 / 1.018 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.8945, allocations: 8 kB / 1.018 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006572/0.8951, allocations: 160 kB / 1.018 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.8952, allocations: 8 kB / 1.018 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003187/0.8984, allocations: 0.7378 MB / 1.019 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.405e-05/0.8984, allocations: 24 kB / 1.019 GB, free: 12.59 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000735/0.8992, allocations: 333.8 kB / 1.019 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002883/0.8995, allocations: 94.78 kB / 1.019 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001166/0.9006, allocations: 0.528 MB / 1.02 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.9007, allocations: 4.188 kB / 1.02 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.9007, allocations: 0 / 1.02 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.9007, allocations: 7.984 kB / 1.02 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/0.9029, allocations: 1.264 MB / 1.021 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.9029, allocations: 0 / 1.021 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.9034, allocations: 123.8 kB / 1.021 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.819e-06/0.9035, allocations: 7.938 kB / 1.021 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.9035, allocations: 8 kB / 1.021 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001445/0.905, allocations: 2.95 MB / 1.024 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.905, allocations: 0 / 1.024 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009102/0.9059, allocations: 0.574 MB / 1.025 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.9063, allocations: 223.6 kB / 1.025 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.9064, allocations: 4 kB / 1.025 GB, free: 6.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005063/0.9069, allocations: 67.88 kB / 1.025 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.929e-05/0.907, allocations: 35.89 kB / 1.025 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.9071, allocations: 12 kB / 1.025 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0007493/0.9078, allocations: 0.6006 MB / 1.025 GB, free: 5.516 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9078, allocations: 4 kB / 1.025 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001627/0.9094, allocations: 0.5345 MB / 1.026 GB, free: 4.977 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007192/0.9102, allocations: 337.3 kB / 1.026 GB, free: 4.645 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002654/0.9128, allocations: 0.8431 MB / 1.027 GB, free: 3.801 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.9129, allocations: 4 kB / 1.027 GB, free: 3.797 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005682/0.9134, allocations: 239.5 kB / 1.027 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002451/0.9159, allocations: 475.6 kB / 1.028 GB, free: 3.098 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003068/0.919, allocations: 1.803 MB / 1.03 GB, free: 1.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006613/0.9197, allocations: 1.025 MB / 1.031 GB, free: 200 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.001301/0.921, allocations: 215 kB / 1.031 GB, free: 15.98 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002363/0.9212, allocations: 79.42 kB / 1.031 GB, free: 15.9 MB / 0.795 GB Notification: Performance of SimCode: time 7.11e-07/0.9212, allocations: 0 / 1.031 GB, free: 15.9 MB / 0.795 GB Notification: Performance of Templates: time 0.04574/0.967, allocations: 23.57 MB / 1.054 GB, free: 8.793 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches