Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001497/0.001497, allocations: 108 kB / 15.61 MB, free: 152 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.001692/0.001692, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.74/2.74, allocations: 472.7 MB / 0.7452 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 60.42 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2992, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003837/0.3031, allocations: 2.61 MB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.3045, allocations: 0.9002 MB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.3047, allocations: 11.94 kB / 1.072 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.3049, allocations: 63.33 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.3051, allocations: 63.41 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.3055, allocations: 231.7 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004004/0.3059, allocations: 455.6 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.3063, allocations: 237.1 kB / 1.073 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.3064, allocations: 151.4 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.3066, allocations: 139.3 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.288e-05/0.3066, allocations: 48 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.228e-05/0.3067, allocations: 55.94 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.077e-05/0.3068, allocations: 91.7 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.3069, allocations: 183 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.3074, allocations: 0.604 MB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3074, allocations: 0 / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.835e-06/0.3074, allocations: 3.984 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3074, allocations: 0 / 1.074 GB, free: 4.559 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0008474/0.3083, allocations: 0.6428 MB / 1.075 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.3083, allocations: 8.031 kB / 1.075 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.436e-05/0.3084, allocations: 48.45 kB / 1.075 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.3088, allocations: 383.2 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.3089, allocations: 20.94 kB / 1.075 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.429e-05/0.3089, allocations: 24.38 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.3094, allocations: 329.7 kB / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.3095, allocations: 0 / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.3095, allocations: 23.92 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.3095, allocations: 4 kB / 1.075 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004573/0.31, allocations: 234.1 kB / 1.076 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.3114, allocations: 1.174 MB / 1.077 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004532/0.3118, allocations: 230.1 kB / 1.077 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.312, allocations: 100.8 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.3121, allocations: 0 / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.3121, allocations: 34.5 kB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.062e-06/0.3121, allocations: 0 / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.000636/0.3127, allocations: 307 kB / 1.077 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.3128, allocations: 81.05 kB / 1.077 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.3131, allocations: 332.5 kB / 1.078 GB, free: 424 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.3132, allocations: 25.7 kB / 1.078 GB, free: 392 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.3133, allocations: 200 kB / 1.078 GB, free: 188 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.3134, allocations: 55.2 kB / 1.078 GB, free: 132 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.764e-05/0.3134, allocations: 37.7 kB / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3136, allocations: 346.8 kB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.3138, allocations: 88.83 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.314, allocations: 111.4 kB / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.3144, allocations: 193.8 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3144, allocations: 0 / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004594/0.3148, allocations: 257.1 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.3149, allocations: 4 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3149, allocations: 0 / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.3149, allocations: 4.062 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.3151, allocations: 31.98 kB / 1.079 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3151, allocations: 0 / 1.079 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.3152, allocations: 35.61 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.3152, allocations: 7.938 kB / 1.079 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002257/0.3155, allocations: 205.8 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001441/0.3156, allocations: 105.2 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002623/0.3159, allocations: 163.7 kB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.092e-06/0.3159, allocations: 0 / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003736/0.3163, allocations: 226.9 kB / 1.08 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.3163, allocations: 7.984 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-06/0.3163, allocations: 3.938 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.34e-06/0.3163, allocations: 4.062 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.3164, allocations: 24 kB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-06/0.3165, allocations: 4 kB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.3166, allocations: 15.92 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.3166, allocations: 11.88 kB / 1.08 GB, free: 14.21 MB / 0.8419 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.0001393/0.3167, allocations: 188.2 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-05/0.3168, allocations: 31.62 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.884e-05/0.3169, allocations: 39.22 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/0.3169, allocations: 4 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3169, allocations: 4 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3169, allocations: 7.922 kB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004741/0.3174, allocations: 409.3 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3174, allocations: 0 / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.3176, allocations: 27.98 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3176, allocations: 0 / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.3177, allocations: 0 / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.3177, allocations: 7.938 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3177, allocations: 0 / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007011/0.3184, allocations: 436.7 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.3185, allocations: 136.7 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.163e-05/0.3186, allocations: 8 kB / 1.081 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.3187, allocations: 7.984 kB / 1.081 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.3188, allocations: 15.92 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.3188, allocations: 4.062 kB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002503/0.3191, allocations: 239.1 kB / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3191, allocations: 0 / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000421/0.3195, allocations: 87.59 kB / 1.081 GB, free: 12.51 MB / 0.8419 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.0001617/0.3197, allocations: 103.7 kB / 1.081 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006581/0.3203, allocations: 297.9 kB / 1.082 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3204, allocations: 0 / 1.082 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.3206, allocations: 99.84 kB / 1.082 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006736/0.3212, allocations: 82.08 kB / 1.082 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.3223, allocations: 0.5588 MB / 1.082 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.3227, allocations: 0.7792 MB / 1.083 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001224/0.3228, allocations: 22.28 kB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.49e-05/0.3229, allocations: 23.44 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of SimCode: time 3.4e-07/0.3229, allocations: 0 / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.006621/0.3295, allocations: 3.151 MB / 1.086 GB, free: 7.379 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches