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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001076/0.001076, allocations: 104.5 kB / 16.35 MB, free: 5.828 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.001118/0.001118, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.199/1.199, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.209/2.209, allocations: 442.5 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 67.83 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2592, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003993/0.2633, allocations: 2.629 MB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001379/0.2647, allocations: 0.9155 MB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/0.2649, allocations: 11.94 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.2651, allocations: 63.39 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.2652, allocations: 55.42 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00047/0.2657, allocations: 246.5 kB / 1.031 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.2661, allocations: 455.7 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.2664, allocations: 225.1 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.2665, allocations: 151.3 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.2667, allocations: 139.3 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.2668, allocations: 52 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.938e-05/0.2668, allocations: 51.94 kB / 1.032 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.734e-05/0.2669, allocations: 83.77 kB / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.267, allocations: 202.9 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005319/0.2676, allocations: 0.6074 MB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2676, allocations: 0 / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2676, allocations: 0 / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.2676, allocations: 4 kB / 1.032 GB, free: 12.18 MB / 0.8106 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.0009204/0.2685, allocations: 0.6507 MB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2686, allocations: 12.03 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.2687, allocations: 40.47 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.2692, allocations: 391.2 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.2692, allocations: 20.94 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.893e-05/0.2692, allocations: 32.38 kB / 1.034 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005648/0.2698, allocations: 321.7 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2698, allocations: 4 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/0.2699, allocations: 16 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2699, allocations: 8 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000436/0.2703, allocations: 234.1 kB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.2716, allocations: 1.155 MB / 1.035 GB, free: 9.156 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.2721, allocations: 234.8 kB / 1.035 GB, free: 8.918 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.2723, allocations: 92.83 kB / 1.036 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.2723, allocations: 4 kB / 1.036 GB, free: 8.82 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.2723, allocations: 30.56 kB / 1.036 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.2724, allocations: 0 / 1.036 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0006457/0.273, allocations: 307.9 kB / 1.036 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.2731, allocations: 81.11 kB / 1.036 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.2734, allocations: 332.5 kB / 1.036 GB, free: 8.047 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.2734, allocations: 29.7 kB / 1.036 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.2736, allocations: 192.1 kB / 1.036 GB, free: 7.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.2736, allocations: 59.08 kB / 1.037 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.2737, allocations: 45.7 kB / 1.037 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.2738, allocations: 342.8 kB / 1.037 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.274, allocations: 84.83 kB / 1.037 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.2742, allocations: 121.1 kB / 1.037 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.2745, allocations: 193.2 kB / 1.037 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2745, allocations: 4 kB / 1.037 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004015/0.2749, allocations: 249.1 kB / 1.038 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.275, allocations: 8.062 kB / 1.038 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.275, allocations: 4 kB / 1.038 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.275, allocations: 0 / 1.038 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.2752, allocations: 35.92 kB / 1.038 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.2752, allocations: 4 kB / 1.038 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.2753, allocations: 27.7 kB / 1.038 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.2753, allocations: 8 kB / 1.038 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002245/0.2756, allocations: 192.1 kB / 1.038 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001394/0.2757, allocations: 111.4 kB / 1.038 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002919/0.276, allocations: 164.6 kB / 1.038 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.264e-06/0.276, allocations: 4 kB / 1.038 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003199/0.2763, allocations: 217.2 kB / 1.038 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.414e-06/0.2763, allocations: 16.08 kB / 1.038 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-06/0.2764, allocations: 0 / 1.038 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-06/0.2764, allocations: 0 / 1.038 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.2765, allocations: 24 kB / 1.038 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.2765, allocations: 0 / 1.038 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.2766, allocations: 27.77 kB / 1.038 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.2766, allocations: 7.938 kB / 1.038 GB, free: 5.84 MB / 0.8106 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.0001053/0.2767, allocations: 192.2 kB / 1.039 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.2768, allocations: 27.62 kB / 1.039 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.829e-05/0.2769, allocations: 35.28 kB / 1.039 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2769, allocations: 4 kB / 1.039 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2769, allocations: 0 / 1.039 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2769, allocations: 7.922 kB / 1.039 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.2773, allocations: 409.3 kB / 1.039 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2773, allocations: 0 / 1.039 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.2774, allocations: 27.92 kB / 1.039 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2775, allocations: 7.938 kB / 1.039 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.2775, allocations: 4 kB / 1.039 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2775, allocations: 0 / 1.039 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2775, allocations: 4 kB / 1.039 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.2781, allocations: 433.3 kB / 1.039 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.2783, allocations: 136.7 kB / 1.04 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.2783, allocations: 3.938 kB / 1.04 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.2784, allocations: 24.05 kB / 1.04 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.047e-05/0.2785, allocations: 11.92 kB / 1.04 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.2785, allocations: 4 kB / 1.04 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002052/0.2787, allocations: 239 kB / 1.04 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2787, allocations: 0 / 1.04 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003552/0.2791, allocations: 87.69 kB / 1.04 GB, free: 4.125 MB / 0.8106 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 9.668e-05/0.2792, allocations: 103.2 kB / 1.04 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005194/0.2797, allocations: 294.6 kB / 1.04 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2797, allocations: 0 / 1.04 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.2799, allocations: 99.83 kB / 1.04 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/0.2804, allocations: 79.75 kB / 1.04 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000941/0.2813, allocations: 0.5434 MB / 1.041 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.2816, allocations: 0.7753 MB / 1.042 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.2818, allocations: 26.28 kB / 1.042 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.861e-05/0.2818, allocations: 23.44 kB / 1.042 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.2818, allocations: 0 / 1.042 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of Templates: time 0.005793/0.2876, allocations: 3.158 MB / 1.045 GB, free: 15.02 MB / 0.8262 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 -s cvode -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/jenkins1/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