Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.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.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 98.19 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.01232/0.01232, 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.468/1.468, allocations: 223.3 MB / 240.3 MB, free: 5.266 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.507/2.507, allocations: 390.9 MB / 0.6663 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003951, allocations: 8 kB / 0.8159 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8849/0.8854, allocations: 142.4 MB / 0.955 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003519/0.8889, allocations: 2.272 MB / 0.9573 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001863/0.8908, allocations: 0.8639 MB / 0.9581 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004514/0.8913, allocations: 8.094 kB / 0.9581 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.8916, allocations: 47.25 kB / 0.9582 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.8918, allocations: 56.95 kB / 0.9582 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.8925, allocations: 207.9 kB / 0.9584 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005967/0.8931, allocations: 408.8 kB / 0.9588 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004282/0.8935, allocations: 219.1 kB / 0.959 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.8937, allocations: 90.36 kB / 0.9591 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000191/0.8939, allocations: 101.8 kB / 0.9592 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.739e-05/0.894, allocations: 8.125 kB / 0.9592 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.342e-05/0.894, allocations: 6.875 kB / 0.9592 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.776e-05/0.894, allocations: 44.09 kB / 0.9592 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.8942, allocations: 161.7 kB / 0.9594 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004466/0.8946, allocations: 0.5495 MB / 0.9599 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.8947, allocations: 0 / 0.9599 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.903e-06/0.8947, allocations: 0 / 0.9599 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.615e-06/0.8947, allocations: 4 kB / 0.9599 GB, free: 3.828 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009153/0.8956, allocations: 0.5755 MB / 0.9605 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.8957, allocations: 9.625 kB / 0.9605 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.8958, allocations: 45.09 kB / 0.9606 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.8963, allocations: 378 kB / 0.9609 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.668e-05/0.8963, allocations: 19.94 kB / 0.9609 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.8964, allocations: 34.12 kB / 0.961 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006555/0.897, allocations: 337.6 kB / 0.9613 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.8971, allocations: 3.938 kB / 0.9613 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.8971, allocations: 10.75 kB / 0.9613 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.8971, allocations: 10.88 kB / 0.9613 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005939/0.8977, allocations: 245.2 kB / 0.9615 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.8993, allocations: 1.187 MB / 0.9627 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005051/0.8998, allocations: 242.7 kB / 0.9629 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.9001, allocations: 102.7 kB / 0.963 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.9001, allocations: 6.094 kB / 0.963 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.9002, allocations: 35.94 kB / 0.9631 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.9002, allocations: 1.312 kB / 0.9631 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0007764/0.9009, allocations: 319.9 kB / 0.9634 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.901, allocations: 79.17 kB / 0.9635 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.9014, allocations: 329.3 kB / 0.9638 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.9014, allocations: 25.7 kB / 0.9638 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.9016, allocations: 202.8 kB / 0.964 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.9016, allocations: 54.92 kB / 0.964 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.9017, allocations: 24.08 kB / 0.9641 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.402e-05/0.9018, allocations: 341.5 kB / 0.9644 GB, free: 200 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.902, allocations: 92.36 kB / 0.9645 GB, free: 152 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.9022, allocations: 125.1 kB / 0.9646 GB, free: 68 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004506/0.9027, allocations: 201.7 kB / 0.9648 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.9027, allocations: 1.125 kB / 0.9648 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005678/0.9033, allocations: 265.8 kB / 0.965 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.9034, allocations: 114.5 kB / 0.9652 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.9034, allocations: 9.266 kB / 0.9652 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.9034, allocations: 5.281 kB / 0.9652 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.9036, allocations: 29.95 kB / 0.9652 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.9036, allocations: 2.688 kB / 0.9652 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.9038, allocations: 27.3 kB / 0.9652 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.9038, allocations: 10.38 kB / 0.9652 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/0.9038, allocations: 2.688 kB / 0.9652 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003344/0.9042, allocations: 176.2 kB / 0.9654 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.9042, allocations: 1.562 kB / 0.9654 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.062e-06/0.9042, allocations: 5.312 kB / 0.9654 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.9043, allocations: 30.3 kB / 0.9654 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.9044, allocations: 1.125 kB / 0.9654 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.9045, allocations: 23.66 kB / 0.9655 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.9045, allocations: 4.781 kB / 0.9655 GB, free: 15.54 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (expMod.oveWriAct_activate,expMod.oveWriSet_activate,expMod.mod.conPI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0002611/0.9048, allocations: 249.7 kB / 0.9657 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/0.9049, allocations: 29.88 kB / 0.9657 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.712e-05/0.905, allocations: 39.69 kB / 0.9658 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.905, allocations: 2.469 kB / 0.9658 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.905, allocations: 0 / 0.9658 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.905, allocations: 0 / 0.9658 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006771/0.9057, allocations: 409.8 kB / 0.9662 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.9057, allocations: 4 kB / 0.9662 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.9059, allocations: 27.17 kB / 0.9662 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.9059, allocations: 0.9062 kB / 0.9662 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.9059, allocations: 5 kB / 0.9662 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.906, allocations: 1.125 kB / 0.9662 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.906, allocations: 4 kB / 0.9662 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009237/0.9069, allocations: 460.5 kB / 0.9666 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.9071, allocations: 134 kB / 0.9668 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/0.9071, allocations: 5.969 kB / 0.9668 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.9073, allocations: 13.28 kB / 0.9668 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.037e-05/0.9074, allocations: 12.27 kB / 0.9668 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.9074, allocations: 4.062 kB / 0.9668 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003353/0.9077, allocations: 234.6 kB / 0.967 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9077, allocations: 0 / 0.967 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004796/0.9082, allocations: 95.88 kB / 0.9671 GB, free: 14.23 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (expMod.mod.conPI.I.y,expMod.mod.firOrd.y) * Number of discrete variables: 2 (expMod.oveWriSet_activate,expMod.oveWriAct_activate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001583/0.9084, allocations: 108.7 kB / 0.9672 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007143/0.9091, allocations: 287.8 kB / 0.9675 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.9091, allocations: 5.188 kB / 0.9675 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002897/0.9094, allocations: 104.5 kB / 0.9676 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000668/0.9101, allocations: 75.41 kB / 0.9677 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.9117, allocations: 0.6862 MB / 0.9683 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.9121, allocations: 0.7723 MB / 0.9691 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001743/0.9123, allocations: 32.8 kB / 0.9691 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.755e-05/0.9124, allocations: 19.97 kB / 0.9692 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of SimCode: time 7.31e-07/0.9124, allocations: 1.031 kB / 0.9692 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of Templates: time 0.007895/0.9203, allocations: 2.947 MB / 0.972 GB, free: 11.21 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches