Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.00098/0.00098, allocations: 99.58 kB / 16.02 MB, free: 76 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.001303/0.001303, allocations: 180.2 kB / 16.92 MB, free: 6.918 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.42/1.42, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.814/2.814, allocations: 437.8 MB / 0.7128 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003962/0.0003964, allocations: 16 kB / 0.8735 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7016/0.702, allocations: 153.8 MB / 1.024 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03208/0.7341, allocations: 28.95 MB / 1.052 GB, free: 2.848 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01222/0.7464, allocations: 8.121 MB / 1.06 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.748, allocations: 27.75 kB / 1.06 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001431/0.7495, allocations: 338 kB / 1.06 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004543/0.754, allocations: 1.248 MB / 1.061 GB, free: 9.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003073/0.7571, allocations: 1.025 MB / 1.062 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.005209/0.7624, allocations: 4.21 MB / 1.067 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002183/0.7646, allocations: 1.165 MB / 1.068 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003465/0.768, allocations: 1.48 MB / 1.069 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0032/0.7713, allocations: 1.604 MB / 1.071 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0007054/0.772, allocations: 64 kB / 1.071 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00277/0.7748, allocations: 0.9319 MB / 1.072 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0008138/0.7756, allocations: 346.7 kB / 1.072 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001667/0.7773, allocations: 0.7014 MB / 1.073 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002254/0.7795, allocations: 1.551 MB / 1.074 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.7796, allocations: 0 / 1.074 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.883e-06/0.7796, allocations: 0 / 1.074 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.697e-05/0.7796, allocations: 0 / 1.074 GB, free: 11.99 MB / 0.8262 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.002877/0.7825, allocations: 1.336 MB / 1.076 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.7826, allocations: 8.031 kB / 1.076 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005628/0.7832, allocations: 147.4 kB / 1.076 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.7849, allocations: 0.8909 MB / 1.077 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-05/0.785, allocations: 85.31 kB / 1.077 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002158/0.7852, allocations: 119.9 kB / 1.077 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.7864, allocations: 0.6395 MB / 1.077 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.7864, allocations: 3.938 kB / 1.077 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/0.7864, allocations: 28 kB / 1.077 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.7865, allocations: 19.94 kB / 1.077 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009237/0.7874, allocations: 480.8 kB / 1.078 GB, free: 8.117 MB / 0.8262 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.004495/0.7919, allocations: 2.875 MB / 1.081 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006224/0.7925, allocations: 320.9 kB / 1.081 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.7929, allocations: 153.4 kB / 1.081 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003112/0.7932, allocations: 340.7 kB / 1.081 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.7932, allocations: 42.83 kB / 1.081 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 2.344e-06/0.7932, allocations: 0 / 1.081 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33): time 0.001326/0.7946, allocations: 0.5516 MB / 1.082 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.7946, allocations: 55.41 kB / 1.082 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.7957, allocations: 0.9075 MB / 1.083 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.7959, allocations: 53.7 kB / 1.083 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004909/0.7964, allocations: 0.53 MB / 1.084 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.747e-05/0.7965, allocations: 122.3 kB / 1.084 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.235e-05/0.7966, allocations: 61.69 kB / 1.084 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.7967, allocations: 338.1 kB / 1.084 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.7971, allocations: 189.2 kB / 1.084 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.7985, allocations: 1.159 MB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008517/0.7994, allocations: 471.4 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.7994, allocations: 0 / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001339/0.8007, allocations: 0.6618 MB / 1.086 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.71e-05/0.8008, allocations: 150.3 kB / 1.087 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.8008, allocations: 4 kB / 1.087 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.8009, allocations: 4 kB / 1.087 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.8023, allocations: 243.6 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.804, allocations: 2.957 MB / 1.09 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003436/0.8075, allocations: 0.7495 MB / 1.09 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/0.8076, allocations: 31.98 kB / 1.09 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.8076, allocations: 7.938 kB / 1.09 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001156/0.8088, allocations: 0.505 MB / 1.091 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.8088, allocations: 4 kB / 1.091 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.8088, allocations: 4 kB / 1.091 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007748/0.8096, allocations: 155.8 kB / 1.091 GB, free: 9.672 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.8096, allocations: 11.98 kB / 1.091 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003362/0.813, allocations: 0.7341 MB / 1.092 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/0.813, allocations: 23.98 kB / 1.092 GB, free: 8.898 MB / 0.8419 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000573/0.8136, allocations: 341.8 kB / 1.092 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.8138, allocations: 98.69 kB / 1.092 GB, free: 8.457 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.8149, allocations: 0.5244 MB / 1.093 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.815, allocations: 4 kB / 1.093 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.815, allocations: 0 / 1.093 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.815, allocations: 0 / 1.093 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.8169, allocations: 1.26 MB / 1.094 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.817, allocations: 128 / 1.094 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005377/0.8175, allocations: 127.8 kB / 1.094 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.8175, allocations: 4 kB / 1.094 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/0.8176, allocations: 8 kB / 1.094 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.819, allocations: 2.95 MB / 1.097 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.819, allocations: 3.938 kB / 1.097 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009096/0.8199, allocations: 0.5889 MB / 1.098 GB, free: 2.77 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003238/0.8202, allocations: 219.7 kB / 1.098 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.8204, allocations: 12 kB / 1.098 GB, free: 2.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005883/0.821, allocations: 67.78 kB / 1.098 GB, free: 2.457 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/0.8211, allocations: 39.83 kB / 1.098 GB, free: 2.418 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.8211, allocations: 12 kB / 1.098 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000772/0.8219, allocations: 0.6084 MB / 1.099 GB, free: 1.789 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8219, allocations: 4 kB / 1.099 GB, free: 1.785 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001655/0.8235, allocations: 0.5384 MB / 1.099 GB, free: 1.246 MB / 0.8419 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008089/0.8244, allocations: 327.1 kB / 1.099 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002804/0.8272, allocations: 0.8547 MB / 1.1 GB, free: 72 kB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.8272, allocations: 0 / 1.1 GB, free: 72 kB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.8279, allocations: 241.3 kB / 1.1 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002812/0.8307, allocations: 474.7 kB / 1.101 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.8337, allocations: 1.928 MB / 1.103 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006106/0.8343, allocations: 1.021 MB / 1.104 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.8346, allocations: 87.41 kB / 1.104 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of SimCode: time 6.61e-07/0.8346, allocations: 0 / 1.104 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of Templates: time 0.04825/0.8828, allocations: 36.25 MB / 1.139 GB, free: 8.254 MB / 0.8887 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches