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.001423/0.001423, allocations: 92.2 kB / 20.19 MB, free: 4.352 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.002033/0.002033, allocations: 169 kB / 23.49 MB, free: 1.051 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.982/0.982, allocations: 177.1 MB / 203.8 MB, free: 5.629 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.124/2.124, allocations: 429.5 MB / 0.6736 GB, free: 4.02 MB / 0.6355 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 2.354e-06/2.354e-06, allocations: 0 / 0.8782 GB, free: 5.5 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.116e-05/3.351e-05, allocations: 5.828 kB / 0.8782 GB, free: 5.496 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00305/0.003083, allocations: 2.591 MB / 0.8807 GB, free: 2.91 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0009156/0.003999, allocations: 0.7807 MB / 0.8815 GB, free: 2.129 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.312e-05/0.004082, allocations: 4 kB / 0.8815 GB, free: 2.125 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0009323/0.005014, allocations: 0.5604 MB / 0.882 GB, free: 1.562 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.005199, allocations: 107.4 kB / 0.8821 GB, free: 1.457 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.005379, allocations: 113.6 kB / 0.8822 GB, free: 1.348 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.005595, allocations: 199.4 kB / 0.8824 GB, free: 1.152 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002842/0.00588, allocations: 139.2 kB / 0.8825 GB, free: 1.012 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.005991, allocations: 123.7 kB / 0.8827 GB, free: 0.8906 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.006199, allocations: 87.75 kB / 0.8827 GB, free: 0.8047 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.006221, allocations: 13.06 kB / 0.8828 GB, free: 0.793 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.006346, allocations: 95.77 kB / 0.8828 GB, free: 0.6992 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/0.006405, allocations: 63.81 kB / 0.8829 GB, free: 0.6367 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 5.223e-05/0.006457, allocations: 52.94 kB / 0.883 GB, free: 0.5859 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.006679, allocations: 183.3 kB / 0.8831 GB, free: 416 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.006682, allocations: 0.5938 kB / 0.8831 GB, free: 416 kB / 0.7917 GB Notification: Performance of FrontEnd: time 1.232e-06/0.006683, allocations: 0 / 0.8831 GB, free: 416 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.006687, allocations: 3.625 kB / 0.8831 GB, free: 416 kB / 0.7917 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.0005459/0.007233, allocations: 476.2 kB / 0.8836 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.007277, allocations: 12.03 kB / 0.8836 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004051/0.007682, allocations: 72.69 kB / 0.8837 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.007891, allocations: 160.4 kB / 0.8838 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.007906, allocations: 12.64 kB / 0.8838 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.007928, allocations: 20.36 kB / 0.8839 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.008159, allocations: 192.1 kB / 0.884 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.008168, allocations: 0.7812 kB / 0.884 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.008186, allocations: 8.375 kB / 0.884 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/0.00822, allocations: 28.83 kB / 0.8841 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.803e-05/0.008318, allocations: 61.7 kB / 0.8841 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007113/0.009029, allocations: 0.9919 MB / 0.8851 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.908e-05/0.009089, allocations: 40.22 kB / 0.8851 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.398e-05/0.009112, allocations: 11.77 kB / 0.8851 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.009124, allocations: 4 kB / 0.8852 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.009144, allocations: 34.92 kB / 0.8852 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.009146, allocations: 0 / 0.8852 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of matching and sorting (n=4): time 0.0001442/0.00929, allocations: 61.58 kB / 0.8852 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.009317, allocations: 59.34 kB / 0.8853 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.009438, allocations: 205 kB / 0.8855 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.00945, allocations: 25.7 kB / 0.8855 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/0.009527, allocations: 195.1 kB / 0.8857 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.009542, allocations: 19.88 kB / 0.8857 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.009582, allocations: 35.33 kB / 0.8858 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.009699, allocations: 0.5 MB / 0.8862 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.785e-05/0.009737, allocations: 19.67 kB / 0.8863 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.249e-05/0.0098, allocations: 112.5 kB / 0.8864 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.878e-05/0.009898, allocations: 128.4 kB / 0.8865 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.009902, allocations: 4 kB / 0.8865 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001255/0.01003, allocations: 121.4 kB / 0.8866 GB, free: 12.49 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.01004, allocations: 8 kB / 0.8866 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.01005, allocations: 0 / 0.8866 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.01006, allocations: 8.312 kB / 0.8866 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.43e-05/0.01015, allocations: 23.98 kB / 0.8867 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.01015, allocations: 7.938 kB / 0.8867 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.957e-05/0.01019, allocations: 7.953 kB / 0.8867 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.01021, allocations: 15.94 kB / 0.8867 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 5.494e-05/0.01026, allocations: 134.9 kB / 0.8868 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.683e-05/0.01032, allocations: 113.8 kB / 0.8869 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.363e-05/0.01041, allocations: 132.4 kB / 0.887 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.82e-07/0.01041, allocations: 0 / 0.887 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001225/0.01053, allocations: 129.8 kB / 0.8872 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/0.01054, allocations: 8 kB / 0.8872 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.01055, allocations: 4 kB / 0.8872 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.628e-06/0.01055, allocations: 4 kB / 0.8872 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.508e-05/0.0106, allocations: 19.98 kB / 0.8872 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-06/0.0106, allocations: 7.938 kB / 0.8872 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.745e-05/0.01064, allocations: 15.89 kB / 0.8872 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.01064, allocations: 11.94 kB / 0.8872 GB, free: 11.75 MB / 0.8073 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.0001075/0.01075, allocations: 276 kB / 0.8875 GB, free: 11.47 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.01077, allocations: 7.953 kB / 0.8875 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.0108, allocations: 12.41 kB / 0.8875 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.01081, allocations: 4 kB / 0.8875 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.01081, allocations: 0 / 0.8875 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.01082, allocations: 3.984 kB / 0.8875 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.01111, allocations: 491.2 kB / 0.888 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.01111, allocations: 0 / 0.888 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.592e-05/0.01112, allocations: 8 kB / 0.888 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.01112, allocations: 0 / 0.888 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.01113, allocations: 8 kB / 0.888 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.01113, allocations: 12.06 kB / 0.888 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01114, allocations: 0 / 0.888 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.06e-05/0.01122, allocations: 115.4 kB / 0.8881 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.946e-05/0.01124, allocations: 15.88 kB / 0.8882 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.01125, allocations: 8 kB / 0.8882 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.189e-05/0.01127, allocations: 3.938 kB / 0.8882 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.806e-05/0.01129, allocations: 4 kB / 0.8882 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-06/0.01129, allocations: 0 / 0.8882 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.875e-05/0.01135, allocations: 147.2 kB / 0.8883 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.01135, allocations: 0 / 0.8883 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002315/0.01158, allocations: 59.84 kB / 0.8884 GB, free: 10.48 MB / 0.8073 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 7.296e-05/0.01166, allocations: 103.2 kB / 0.8885 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001405/0.0118, allocations: 96.33 kB / 0.8886 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.0118, allocations: 0 / 0.8886 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.545e-05/0.01181, allocations: 23.81 kB / 0.8886 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.012, allocations: 24.3 kB / 0.8886 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005696/0.01257, allocations: 286.1 kB / 0.8889 GB, free: 9.906 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.86e-05/0.01262, allocations: 75.83 kB / 0.8889 GB, free: 9.812 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.942e-05/0.01268, allocations: 24.47 kB / 0.889 GB, free: 9.789 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.87e-05/0.01271, allocations: 12.5 kB / 0.889 GB, free: 9.777 MB / 0.8073 GB Notification: Performance of SimCode: time 1.022e-06/0.01271, allocations: 0 / 0.889 GB, free: 9.777 MB / 0.8073 GB Notification: Performance of Templates: time 0.002606/0.01531, allocations: 0.7979 MB / 0.8898 GB, free: 9.004 MB / 0.8073 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.435479926178232]