Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 108 kB / 15.6 MB, free: 132 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.001504/0.001504, allocations: 195.1 kB / 16.53 MB, free: 6.391 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.545/1.545, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.762/2.762, allocations: 437 MB / 0.7104 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001993, allocations: 63.91 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8174/0.8194, allocations: 151.6 MB / 1.017 GB, free: 2.527 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004725/0.8242, allocations: 2.51 MB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.8258, allocations: 0.7712 MB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.8259, allocations: 7.938 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.8273, allocations: 0.5337 MB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.8276, allocations: 103.5 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.8279, allocations: 103.7 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002815/0.8282, allocations: 195.4 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003855/0.8286, allocations: 174 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.8287, allocations: 87.67 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.829, allocations: 87.72 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.829, allocations: 16 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.8292, allocations: 103.8 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.871e-05/0.8293, allocations: 63.81 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.8294, allocations: 71.61 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003272/0.8298, allocations: 221.3 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.8298, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.353e-06/0.8298, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.8298, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 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.0007205/0.8305, allocations: 443.2 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.8306, allocations: 12.02 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003856/0.831, allocations: 40.81 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.8312, allocations: 224 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.8313, allocations: 8.656 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.8313, allocations: 12.38 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004079/0.8317, allocations: 231.2 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.8317, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.8318, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.332e-05/0.8318, allocations: 24.27 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.8321, allocations: 144.7 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.8334, allocations: 1.131 MB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.28e-05/0.8335, allocations: 42.5 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.702e-05/0.8336, allocations: 16.86 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.8336, allocations: 0 / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.8336, allocations: 42.5 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.8336, allocations: 0 / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002264/0.8339, allocations: 81.52 kB / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.8339, allocations: 55.34 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.8341, allocations: 174 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.8341, allocations: 25.7 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.8343, allocations: 139.4 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.8343, allocations: 15.8 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.653e-05/0.8344, allocations: 33.62 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001816/0.8345, allocations: 322.8 kB / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.247e-05/0.8346, allocations: 24.84 kB / 1.025 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.8347, allocations: 93.44 kB / 1.025 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.8349, allocations: 129.2 kB / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8349, allocations: 0 / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002188/0.8351, allocations: 137.7 kB / 1.026 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.8351, allocations: 8.031 kB / 1.026 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.8352, allocations: 4 kB / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.8352, allocations: 7.938 kB / 1.026 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.8353, allocations: 27.92 kB / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.8353, allocations: 0 / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.545e-05/0.8354, allocations: 23.78 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.8354, allocations: 4 kB / 1.026 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000124/0.8355, allocations: 124.1 kB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000112/0.8357, allocations: 101.2 kB / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001615/0.8358, allocations: 117.3 kB / 1.026 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.122e-06/0.8358, allocations: 0 / 1.026 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002074/0.8361, allocations: 137.3 kB / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/0.8361, allocations: 8 kB / 1.026 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-06/0.8361, allocations: 0 / 1.026 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.8361, allocations: 4 kB / 1.026 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.284e-05/0.8362, allocations: 27.92 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.8362, allocations: 11.88 kB / 1.026 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.03e-05/0.8363, allocations: 7.906 kB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.8363, allocations: 8.312 kB / 1.026 GB, free: 8.848 MB / 0.7794 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.0001264/0.8364, allocations: 184.3 kB / 1.026 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.8365, allocations: 11.89 kB / 1.026 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.765e-05/0.8365, allocations: 16.94 kB / 1.026 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.8365, allocations: 4.219 kB / 1.026 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.8365, allocations: 4 kB / 1.026 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.8365, allocations: 3.938 kB / 1.026 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005432/0.8371, allocations: 477 kB / 1.027 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.8371, allocations: 0 / 1.027 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.791e-05/0.8371, allocations: 11.98 kB / 1.027 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.8371, allocations: 0 / 1.027 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.8372, allocations: 0 / 1.027 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.8372, allocations: 4 kB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.8372, allocations: 3.938 kB / 1.027 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.8373, allocations: 115.7 kB / 1.027 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.455e-05/0.8375, allocations: 89 kB / 1.027 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.8375, allocations: 4 kB / 1.027 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.448e-05/0.8375, allocations: 0 / 1.027 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.716e-05/0.8375, allocations: 0 / 1.027 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.8376, allocations: 12 kB / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001252/0.8377, allocations: 129.3 kB / 1.027 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8377, allocations: 3.938 kB / 1.027 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003622/0.8381, allocations: 51.84 kB / 1.027 GB, free: 7.625 MB / 0.7794 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.0001201/0.8382, allocations: 99.25 kB / 1.027 GB, free: 7.52 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002524/0.8385, allocations: 116.3 kB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.8385, allocations: 0 / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.811e-05/0.8385, allocations: 16 kB / 1.028 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.8388, allocations: 18.27 kB / 1.028 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005685/0.8394, allocations: 285.9 kB / 1.028 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.8398, allocations: 0.7241 MB / 1.029 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000101/0.8399, allocations: 24.62 kB / 1.029 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.76e-05/0.84, allocations: 11.44 kB / 1.029 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.84, allocations: 7.938 kB / 1.029 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of Templates: time 0.004101/0.8441, allocations: 0.8585 MB / 1.029 GB, free: 5.414 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches