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.0009557/0.0009557, allocations: 89.12 kB / 19.64 MB, free: 272 kB / 13.93 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.000971/0.000971, allocations: 173 kB / 23.02 MB, free: 1.535 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.9058/0.9058, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.005/2.005, allocations: 429.5 MB / 0.6733 GB, free: 4.039 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 1.303e-06/1.303e-06, allocations: 0 / 0.8781 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.627e-05/2.757e-05, allocations: 6.25 kB / 0.8781 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003477/0.003504, allocations: 2.163 MB / 0.8803 GB, free: 4.168 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009678/0.004472, allocations: 0.5177 MB / 0.8808 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.004578, allocations: 4 kB / 0.8808 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.005606, allocations: 414.8 kB / 0.8812 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002676/0.005874, allocations: 99.42 kB / 0.8813 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.006168, allocations: 109.6 kB / 0.8814 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.006448, allocations: 207.4 kB / 0.8816 GB, free: 2.832 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.006767, allocations: 135.2 kB / 0.8817 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.006919, allocations: 115.8 kB / 0.8818 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.007168, allocations: 91.8 kB / 0.8819 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.007193, allocations: 16.97 kB / 0.8819 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.007348, allocations: 75.8 kB / 0.882 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.839e-05/0.007416, allocations: 68.88 kB / 0.882 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.065e-05/0.007477, allocations: 47.91 kB / 0.8821 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.007752, allocations: 155.5 kB / 0.8822 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.007755, allocations: 4.594 kB / 0.8822 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/0.007757, allocations: 3.938 kB / 0.8822 GB, free: 2.125 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.007763, allocations: 7.5 kB / 0.8822 GB, free: 2.121 MB / 0.8386 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.0005326/0.008295, allocations: 472.2 kB / 0.8827 GB, free: 1.621 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.00833, allocations: 8.031 kB / 0.8827 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003694/0.0087, allocations: 76.72 kB / 0.8828 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.008907, allocations: 160.4 kB / 0.8829 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.008921, allocations: 8.656 kB / 0.8829 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.008945, allocations: 17.17 kB / 0.883 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.009222, allocations: 208.9 kB / 0.8832 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.009234, allocations: 0.7812 kB / 0.8832 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.009251, allocations: 4.375 kB / 0.8832 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.563e-05/0.009287, allocations: 21.47 kB / 0.8832 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.009406, allocations: 60.73 kB / 0.8832 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000851/0.01026, allocations: 1.005 MB / 0.8842 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.409e-05/0.01032, allocations: 35.05 kB / 0.8843 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.335e-05/0.01034, allocations: 15.69 kB / 0.8843 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.01035, allocations: 1.406 kB / 0.8843 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.01038, allocations: 41.33 kB / 0.8843 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=4): time 2.304e-06/0.01038, allocations: 0 / 0.8843 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of matching and sorting (n=4): time 0.0001492/0.01053, allocations: 53.73 kB / 0.8844 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002816/0.01081, allocations: 52.03 kB / 0.8844 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.01091, allocations: 205.2 kB / 0.8846 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.01092, allocations: 29.7 kB / 0.8846 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.124e-05/0.01101, allocations: 198.3 kB / 0.8848 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.01103, allocations: 15.84 kB / 0.8848 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.01108, allocations: 39.36 kB / 0.8849 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.01122, allocations: 0.4922 MB / 0.8854 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.721e-05/0.01126, allocations: 19.67 kB / 0.8854 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.281e-05/0.01135, allocations: 119 kB / 0.8855 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.01148, allocations: 136.4 kB / 0.8856 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.01149, allocations: 0 / 0.8856 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001904/0.01168, allocations: 117.4 kB / 0.8857 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.0117, allocations: 4.312 kB / 0.8857 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.0117, allocations: 8 kB / 0.8857 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.01172, allocations: 8 kB / 0.8858 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.01185, allocations: 27.92 kB / 0.8858 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.01185, allocations: 0 / 0.8858 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.824e-05/0.01193, allocations: 19.89 kB / 0.8858 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.01195, allocations: 7.938 kB / 0.8858 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.112e-05/0.01203, allocations: 142.9 kB / 0.8859 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.578e-05/0.01211, allocations: 112.5 kB / 0.886 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001208/0.01223, allocations: 132.7 kB / 0.8862 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.01224, allocations: 4 kB / 0.8862 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001859/0.01242, allocations: 121.5 kB / 0.8863 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.01243, allocations: 8 kB / 0.8863 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.01244, allocations: 0 / 0.8863 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.292e-06/0.01244, allocations: 4 kB / 0.8863 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.83e-05/0.01253, allocations: 27.92 kB / 0.8863 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.01254, allocations: 4 kB / 0.8863 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.137e-05/0.0126, allocations: 11.95 kB / 0.8863 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.01261, allocations: 4 kB / 0.8864 GB, free: 13.47 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.0001208/0.01273, allocations: 284.2 kB / 0.8866 GB, free: 13.19 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.01276, allocations: 7.953 kB / 0.8866 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.795e-05/0.0128, allocations: 16.33 kB / 0.8866 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.0128, allocations: 0 / 0.8866 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.0128, allocations: 0 / 0.8866 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.01281, allocations: 0 / 0.8866 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004301/0.01324, allocations: 0.4913 MB / 0.8871 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.01324, allocations: 3.938 kB / 0.8871 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.46e-05/0.01327, allocations: 4 kB / 0.8871 GB, free: 12.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.01328, allocations: 12.05 kB / 0.8871 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.01329, allocations: 4 kB / 0.8871 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.01329, allocations: 3.938 kB / 0.8872 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.0133, allocations: 4 kB / 0.8872 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.01343, allocations: 111.5 kB / 0.8873 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.177e-05/0.01346, allocations: 11.95 kB / 0.8873 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.01347, allocations: 0 / 0.8873 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.13e-05/0.01351, allocations: 7.938 kB / 0.8873 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.01353, allocations: 7.922 kB / 0.8873 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.01353, allocations: 4 kB / 0.8873 GB, free: 12.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.935e-05/0.01361, allocations: 148.7 kB / 0.8874 GB, free: 12.26 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.9e-07/0.01361, allocations: 4 kB / 0.8874 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004162/0.01403, allocations: 55.84 kB / 0.8875 GB, free: 12.2 MB / 0.8542 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 0.000116/0.01415, allocations: 99.23 kB / 0.8876 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002188/0.01436, allocations: 99.97 kB / 0.8877 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.01437, allocations: 384 / 0.8877 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.17e-05/0.01439, allocations: 23.67 kB / 0.8877 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.01468, allocations: 27.86 kB / 0.8877 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007591/0.01544, allocations: 262.4 kB / 0.888 GB, free: 11.63 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.429e-05/0.0155, allocations: 79.83 kB / 0.8881 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.783e-05/0.01559, allocations: 20.72 kB / 0.8881 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.01563, allocations: 16.48 kB / 0.8881 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of SimCode: time 1.313e-06/0.01563, allocations: 0 / 0.8881 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.003664/0.01929, allocations: 0.8263 MB / 0.8889 GB, free: 10.69 MB / 0.8542 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.126152016688138]