Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009178/0.0009178, allocations: 86.05 kB / 19.87 MB, free: 4.617 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009316/0.0009316, allocations: 170 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9742/0.9742, allocations: 177.2 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.282/2.282, allocations: 438.1 MB / 0.682 GB, free: 14.17 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 0.8897 GB, free: 9.801 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.389e-05/2.53e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.797 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00373/0.003755, allocations: 2.137 MB / 0.8918 GB, free: 7.648 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.004762, allocations: 0.514 MB / 0.8923 GB, free: 7.133 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.004872, allocations: 4 kB / 0.8923 GB, free: 7.129 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0009071/0.005779, allocations: 410.8 kB / 0.8927 GB, free: 6.723 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.006054, allocations: 103.4 kB / 0.8928 GB, free: 6.621 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.006379, allocations: 111.7 kB / 0.8929 GB, free: 6.512 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.000309/0.006688, allocations: 211.3 kB / 0.8931 GB, free: 6.305 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003251/0.007013, allocations: 142 kB / 0.8932 GB, free: 6.16 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.007189, allocations: 115.8 kB / 0.8934 GB, free: 6.047 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002692/0.007458, allocations: 91.73 kB / 0.8934 GB, free: 5.957 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.416e-05/0.007492, allocations: 12 kB / 0.8934 GB, free: 5.945 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.00767, allocations: 79.8 kB / 0.8935 GB, free: 5.867 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 7.667e-05/0.007746, allocations: 67.81 kB / 0.8936 GB, free: 5.801 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 6.155e-05/0.007808, allocations: 47.91 kB / 0.8936 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.008094, allocations: 163.5 kB / 0.8938 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.008098, allocations: 0 / 0.8938 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of FrontEnd: time 8.92e-07/0.008099, allocations: 0 / 0.8938 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.008103, allocations: 0 / 0.8938 GB, free: 5.594 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0005415/0.008644, allocations: 479.7 kB / 0.8942 GB, free: 5.086 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.008686, allocations: 8.625 kB / 0.8943 GB, free: 5.078 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003632/0.00905, allocations: 68.73 kB / 0.8943 GB, free: 5.012 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.009246, allocations: 164.3 kB / 0.8945 GB, free: 4.824 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.009262, allocations: 8.656 kB / 0.8945 GB, free: 4.816 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.253e-05/0.009284, allocations: 20.36 kB / 0.8945 GB, free: 4.797 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.009519, allocations: 184.6 kB / 0.8947 GB, free: 4.586 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.00953, allocations: 8.125 kB / 0.8947 GB, free: 4.578 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.009546, allocations: 4.375 kB / 0.8947 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.531e-05/0.009581, allocations: 16.22 kB / 0.8947 GB, free: 4.559 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.961e-05/0.00967, allocations: 57.23 kB / 0.8948 GB, free: 4.504 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008211/0.01049, allocations: 1.003 MB / 0.8957 GB, free: 3.438 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 5.811e-05/0.01055, allocations: 39.05 kB / 0.8958 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.866e-05/0.01057, allocations: 7.688 kB / 0.8958 GB, free: 3.375 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.182e-05/0.01058, allocations: 4 kB / 0.8958 GB, free: 3.371 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.0106, allocations: 33.39 kB / 0.8958 GB, free: 3.328 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=4): time 1.994e-06/0.01061, allocations: 0 / 0.8958 GB, free: 3.328 MB / 0.8542 GB Notification: Performance of matching and sorting (n=4): time 0.0001467/0.01075, allocations: 57.67 kB / 0.8959 GB, free: 3.266 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.01078, allocations: 51.41 kB / 0.8959 GB, free: 3.203 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.01089, allocations: 207.2 kB / 0.8961 GB, free: 2.984 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.01091, allocations: 29.7 kB / 0.8962 GB, free: 2.949 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.82e-05/0.011, allocations: 198.3 kB / 0.8963 GB, free: 2.75 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.01101, allocations: 19.83 kB / 0.8964 GB, free: 2.73 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.01106, allocations: 35.36 kB / 0.8964 GB, free: 2.688 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.0112, allocations: 0.4922 MB / 0.8969 GB, free: 2.184 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.746e-05/0.01122, allocations: 23.61 kB / 0.8969 GB, free: 2.156 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.193e-05/0.01129, allocations: 108.5 kB / 0.897 GB, free: 2.004 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.01142, allocations: 136.4 kB / 0.8971 GB, free: 1.824 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.01142, allocations: 0 / 0.8971 GB, free: 1.824 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000157/0.01158, allocations: 113.5 kB / 0.8972 GB, free: 1.707 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.01159, allocations: 4 kB / 0.8972 GB, free: 1.703 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.0116, allocations: 4 kB / 0.8972 GB, free: 1.699 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.01161, allocations: 4 kB / 0.8973 GB, free: 1.695 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.828e-05/0.01171, allocations: 31.92 kB / 0.8973 GB, free: 1.664 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.01171, allocations: 4 kB / 0.8973 GB, free: 1.66 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.346e-05/0.01178, allocations: 11.89 kB / 0.8973 GB, free: 1.648 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.01179, allocations: 7.938 kB / 0.8973 GB, free: 1.641 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.824e-05/0.01186, allocations: 142.9 kB / 0.8974 GB, free: 1.496 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.319e-05/0.01194, allocations: 112.6 kB / 0.8975 GB, free: 1.344 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002715/0.01221, allocations: 136.6 kB / 0.8977 GB, free: 1.164 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.01221, allocations: 0 / 0.8977 GB, free: 1.164 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001524/0.01237, allocations: 113.4 kB / 0.8978 GB, free: 1.047 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.887e-06/0.01237, allocations: 8 kB / 0.8978 GB, free: 1.039 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.01238, allocations: 4 kB / 0.8978 GB, free: 1.035 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-06/0.01238, allocations: 4 kB / 0.8978 GB, free: 1.031 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.205e-05/0.01246, allocations: 19.98 kB / 0.8978 GB, free: 1.012 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.01246, allocations: 8.25 kB / 0.8978 GB, free: 1.004 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.226e-05/0.01251, allocations: 11.95 kB / 0.8978 GB, free: 0.9922 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-06/0.01252, allocations: 12 kB / 0.8979 GB, free: 0.9805 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (14): * Single equations (assignments): 14 * 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.0001031/0.01263, allocations: 268 kB / 0.8981 GB, free: 0.7109 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/0.01265, allocations: 11.95 kB / 0.8981 GB, free: 0.6992 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.01268, allocations: 8.344 kB / 0.8981 GB, free: 0.6797 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.01268, allocations: 0 / 0.8981 GB, free: 0.6797 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.01269, allocations: 7.984 kB / 0.8981 GB, free: 0.6719 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.01269, allocations: 4 kB / 0.8981 GB, free: 0.668 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003197/0.01301, allocations: 479.7 kB / 0.8986 GB, free: 152 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01301, allocations: 0 / 0.8986 GB, free: 152 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.35e-05/0.01304, allocations: 8 kB / 0.8986 GB, free: 144 kB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.01304, allocations: 0 / 0.8986 GB, free: 144 kB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.872e-06/0.01304, allocations: 4 kB / 0.8986 GB, free: 140 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.01305, allocations: 0 / 0.8986 GB, free: 140 kB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.01305, allocations: 7.875 kB / 0.8986 GB, free: 132 kB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.01315, allocations: 111.5 kB / 0.8987 GB, free: 15.98 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.557e-05/0.01318, allocations: 15.94 kB / 0.8987 GB, free: 15.97 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.01319, allocations: 4 kB / 0.8987 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.816e-05/0.01322, allocations: 4.062 kB / 0.8987 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.202e-05/0.01323, allocations: 3.938 kB / 0.8987 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.01324, allocations: 4 kB / 0.8988 GB, free: 15.95 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6e-05/0.0133, allocations: 153 kB / 0.8989 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9e-08/0.0133, allocations: 0 / 0.8989 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003502/0.01365, allocations: 55.84 kB / 0.899 GB, free: 15.75 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.443e-05/0.01374, allocations: 95.25 kB / 0.899 GB, free: 15.65 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001566/0.0139, allocations: 99.62 kB / 0.8991 GB, free: 15.54 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.0139, allocations: 0 / 0.8991 GB, free: 15.54 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 1.852e-05/0.01392, allocations: 19.69 kB / 0.8992 GB, free: 15.52 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.01416, allocations: 19.92 kB / 0.8992 GB, free: 15.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005718/0.01474, allocations: 271.3 kB / 0.8994 GB, free: 15.2 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.1e-05/0.01479, allocations: 79.81 kB / 0.8995 GB, free: 15.09 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.357e-05/0.01484, allocations: 8.484 kB / 0.8995 GB, free: 15.09 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.303e-05/0.0149, allocations: 78.2 kB / 0.8996 GB, free: 15.01 MB / 0.8698 GB Notification: Performance of SimCode: time 8.61e-07/0.0149, allocations: 0 / 0.8996 GB, free: 15.01 MB / 0.8698 GB Notification: Performance of Templates: time 0.002507/0.01741, allocations: 0.868 MB / 0.9004 GB, free: 14.16 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.150124120991677]