Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booToInt.u|booToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booToInt.u|booToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.01081/0.01081, allocations: 169 kB / 16.26 MB, free: 6.652 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.538/1.538, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.584/2.584, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004446, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8921/0.8926, allocations: 142.4 MB / 0.955 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger): time 0.001174/0.8938, allocations: 339.2 kB / 0.9554 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001632/0.8955, allocations: 1.107 MB / 0.9564 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.572e-05/0.8955, allocations: 5.125 kB / 0.9565 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.217e-05/0.8956, allocations: 7.922 kB / 0.9565 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.22e-05/0.8957, allocations: 1.219 kB / 0.9565 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004559/0.8961, allocations: 111 kB / 0.9566 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.8962, allocations: 88.25 kB / 0.9567 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.8964, allocations: 2.875 kB / 0.9567 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.698e-05/0.8965, allocations: 36.53 kB / 0.9567 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.18e-05/0.8966, allocations: 22.91 kB / 0.9567 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.266e-05/0.8966, allocations: 4.344 kB / 0.9567 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.878e-05/0.8967, allocations: 19.17 kB / 0.9567 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.454e-05/0.8967, allocations: 4.984 kB / 0.9567 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.163e-05/0.8968, allocations: 51.81 kB / 0.9568 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.897, allocations: 83.42 kB / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.897, allocations: 0 / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.466e-06/0.897, allocations: 0.9688 kB / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.897, allocations: 0 / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004642/0.8975, allocations: 362.1 kB / 0.9572 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.8975, allocations: 9.781 kB / 0.9572 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.8976, allocations: 12.45 kB / 0.9572 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.8977, allocations: 162.4 kB / 0.9574 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.8978, allocations: 3.125 kB / 0.9574 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.8978, allocations: 9.812 kB / 0.9574 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.8979, allocations: 44.12 kB / 0.9574 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.8979, allocations: 192 / 0.9574 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.898, allocations: 3.938 kB / 0.9574 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.898, allocations: 1.219 kB / 0.9574 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.423e-05/0.898, allocations: 8.219 kB / 0.9575 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000367/0.8984, allocations: 289 kB / 0.9577 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.509e-05/0.8985, allocations: 36.52 kB / 0.9578 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.499e-05/0.8985, allocations: 20.47 kB / 0.9578 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.8985, allocations: 1.156 kB / 0.9578 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/0.8987, allocations: 58.77 kB / 0.9578 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 2.074e-06/0.8987, allocations: 3.984 kB / 0.9578 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002153/0.8989, allocations: 72.19 kB / 0.9579 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.8989, allocations: 52.44 kB / 0.958 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.65e-05/0.899, allocations: 118.5 kB / 0.9581 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.8991, allocations: 27.95 kB / 0.9581 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/0.8991, allocations: 87.28 kB / 0.9582 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.8991, allocations: 13.02 kB / 0.9582 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.8992, allocations: 13.41 kB / 0.9582 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.271e-05/0.8992, allocations: 321 kB / 0.9585 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.501e-05/0.8993, allocations: 28.05 kB / 0.9585 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.994e-05/0.8994, allocations: 59.36 kB / 0.9586 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000103/0.8995, allocations: 83.58 kB / 0.9587 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.8995, allocations: 3.938 kB / 0.9587 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002364/0.8997, allocations: 149.1 kB / 0.9588 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.8998, allocations: 38.58 kB / 0.9589 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.8998, allocations: 64 / 0.9589 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.8998, allocations: 6.188 kB / 0.9589 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.86e-05/0.8999, allocations: 9.828 kB / 0.9589 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.8999, allocations: 1.594 kB / 0.9589 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.9001, allocations: 37.72 kB / 0.9589 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.9002, allocations: 4.062 kB / 0.9589 GB, free: 4.125 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y,booToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 7.746e-05/0.9002, allocations: 122.6 kB / 0.959 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.033e-05/0.9003, allocations: 6.016 kB / 0.959 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.886e-05/0.9003, allocations: 4.969 kB / 0.959 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.9003, allocations: 4.781 kB / 0.9591 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.9003, allocations: 0.875 kB / 0.9591 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.9003, allocations: 0 / 0.9591 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.797e-05/0.9004, allocations: 169.1 kB / 0.9592 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9004, allocations: 0 / 0.9592 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.564e-05/0.9005, allocations: 2.312 kB / 0.9592 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.9005, allocations: 0 / 0.9592 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.9005, allocations: 5.281 kB / 0.9592 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.9005, allocations: 5.469 kB / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.9005, allocations: 0 / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.9006, allocations: 89.02 kB / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.353e-05/0.9006, allocations: 82.7 kB / 0.9594 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.9007, allocations: 1.312 kB / 0.9594 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.378e-05/0.9007, allocations: 0 / 0.9594 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.841e-05/0.9007, allocations: 1.5 kB / 0.9594 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.9007, allocations: 6.656 kB / 0.9594 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.821e-05/0.9008, allocations: 92.23 kB / 0.9595 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9008, allocations: 0 / 0.9595 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002118/0.901, allocations: 19.91 kB / 0.9595 GB, free: 3.488 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booToInt.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001532/0.9011, allocations: 102.5 kB / 0.9596 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002391/0.9014, allocations: 121.7 kB / 0.9597 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.9014, allocations: 0 / 0.9597 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.594e-05/0.9014, allocations: 21.78 kB / 0.9597 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.9017, allocations: 23.12 kB / 0.9598 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004318/0.9021, allocations: 134.9 kB / 0.9599 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.9023, allocations: 0.6804 MB / 0.9606 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.633e-05/0.9024, allocations: 6.453 kB / 0.9606 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.085e-05/0.9024, allocations: 9.5 kB / 0.9606 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.9024, allocations: 4 kB / 0.9606 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of Templates: time 0.004227/0.9066, allocations: 1.022 MB / 0.9616 GB, free: 1.902 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_BooleanToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.BooleanToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches