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.001835/0.001835, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.002128/0.002128, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.517/1.517, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.612/2.612, allocations: 437.1 MB / 0.711 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003157/0.003157, allocations: 64.36 kB / 0.8699 GB, free: 2.152 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3334, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.005559/0.339, allocations: 2.494 MB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001797/0.3409, allocations: 0.7906 MB / 1.021 GB, free: 7.297 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001539/0.3411, allocations: 4 kB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.3427, allocations: 0.5263 MB / 1.022 GB, free: 6.762 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003515/0.3431, allocations: 107.5 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.3434, allocations: 104.4 kB / 1.022 GB, free: 6.555 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002858/0.3437, allocations: 199.3 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/0.3441, allocations: 170.1 kB / 1.022 GB, free: 6.188 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.3443, allocations: 79.75 kB / 1.022 GB, free: 6.109 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000242/0.3445, allocations: 99.62 kB / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.3446, allocations: 12 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002373/0.3448, allocations: 103.8 kB / 1.023 GB, free: 5.898 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.3449, allocations: 59.81 kB / 1.023 GB, free: 5.84 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.345, allocations: 67.67 kB / 1.023 GB, free: 5.773 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.3454, allocations: 219.6 kB / 1.023 GB, free: 5.559 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.3454, allocations: 4 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3454, allocations: 0 / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.044e-06/0.3454, allocations: 0 / 1.023 GB, free: 5.555 MB / 0.795 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.0007639/0.3462, allocations: 455.2 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3463, allocations: 8.922 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004114/0.3467, allocations: 48.7 kB / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.347, allocations: 208.1 kB / 1.024 GB, free: 4.762 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.347, allocations: 8.656 kB / 1.024 GB, free: 4.754 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.347, allocations: 16.38 kB / 1.024 GB, free: 4.738 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004058/0.3475, allocations: 231.3 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.3475, allocations: 3.938 kB / 1.024 GB, free: 4.488 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.3475, allocations: 8 kB / 1.024 GB, free: 4.48 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.726e-05/0.3476, allocations: 16.27 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.3478, allocations: 148.7 kB / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.3491, allocations: 1.13 MB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.802e-05/0.3492, allocations: 46.5 kB / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.194e-05/0.3493, allocations: 16.94 kB / 1.025 GB, free: 2.98 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.3493, allocations: 4 kB / 1.025 GB, free: 2.977 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.3493, allocations: 34.5 kB / 1.025 GB, free: 2.934 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 1.503e-06/0.3493, allocations: 0 / 1.025 GB, free: 2.934 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0002265/0.3496, allocations: 81.45 kB / 1.025 GB, free: 2.848 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.3496, allocations: 59.41 kB / 1.025 GB, free: 2.777 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.3498, allocations: 168 kB / 1.025 GB, free: 2.605 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.3498, allocations: 25.7 kB / 1.025 GB, free: 2.574 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.3499, allocations: 143.3 kB / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.35, allocations: 15.84 kB / 1.026 GB, free: 2.414 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.593e-05/0.35, allocations: 33.61 kB / 1.026 GB, free: 2.375 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3502, allocations: 322.8 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.326e-05/0.3502, allocations: 28.84 kB / 1.026 GB, free: 2.02 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.454e-05/0.3503, allocations: 92.38 kB / 1.026 GB, free: 1.898 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.3505, allocations: 121.3 kB / 1.026 GB, free: 1.746 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3505, allocations: 0 / 1.026 GB, free: 1.746 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002024/0.3507, allocations: 133.3 kB / 1.026 GB, free: 1.609 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3507, allocations: 4 kB / 1.026 GB, free: 1.605 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.3507, allocations: 4.234 kB / 1.026 GB, free: 1.602 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.3508, allocations: 8.25 kB / 1.026 GB, free: 1.594 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.3509, allocations: 31.98 kB / 1.026 GB, free: 1.562 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.3509, allocations: 7.938 kB / 1.026 GB, free: 1.555 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.3e-05/0.351, allocations: 11.84 kB / 1.026 GB, free: 1.543 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.351, allocations: 15.97 kB / 1.026 GB, free: 1.527 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001066/0.3511, allocations: 124.1 kB / 1.027 GB, free: 1.402 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.556e-05/0.3512, allocations: 89.42 kB / 1.027 GB, free: 1.281 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001343/0.3514, allocations: 117.3 kB / 1.027 GB, free: 1.133 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.536e-06/0.3514, allocations: 4 kB / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002024/0.3516, allocations: 133.6 kB / 1.027 GB, free: 0.9922 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.3516, allocations: 11.94 kB / 1.027 GB, free: 0.9805 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.3516, allocations: 4 kB / 1.027 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-06/0.3516, allocations: 0 / 1.027 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.724e-05/0.3517, allocations: 27.92 kB / 1.027 GB, free: 0.9492 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.3517, allocations: 7.938 kB / 1.027 GB, free: 0.9414 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.852e-05/0.3518, allocations: 7.906 kB / 1.027 GB, free: 0.9336 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-06/0.3518, allocations: 8 kB / 1.027 GB, free: 0.9258 MB / 0.795 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.0001171/0.3519, allocations: 188.1 kB / 1.027 GB, free: 0.7344 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.2e-05/0.3519, allocations: 15.97 kB / 1.027 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.529e-05/0.352, allocations: 16.92 kB / 1.027 GB, free: 0.7031 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.352, allocations: 3.938 kB / 1.027 GB, free: 0.6992 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.352, allocations: 0 / 1.027 GB, free: 0.6992 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.352, allocations: 0 / 1.027 GB, free: 0.6992 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004804/0.3525, allocations: 477.1 kB / 1.028 GB, free: 168 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3525, allocations: 0 / 1.028 GB, free: 168 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.403e-05/0.3526, allocations: 19.88 kB / 1.028 GB, free: 148 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3526, allocations: 0 / 1.028 GB, free: 148 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.3526, allocations: 4 kB / 1.028 GB, free: 144 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3526, allocations: 0 / 1.028 GB, free: 144 kB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3526, allocations: 0 / 1.028 GB, free: 144 kB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000163/0.3528, allocations: 123.6 kB / 1.028 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.926e-05/0.3528, allocations: 85.02 kB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.3529, allocations: 7.984 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.443e-05/0.3529, allocations: 0 / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.3529, allocations: 4 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.3529, allocations: 0 / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00011/0.3531, allocations: 128 kB / 1.028 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3531, allocations: 4 kB / 1.028 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003601/0.3534, allocations: 55.75 kB / 1.028 GB, free: 15.69 MB / 0.8106 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.0001136/0.3536, allocations: 99.23 kB / 1.028 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00023/0.3538, allocations: 112.5 kB / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3538, allocations: 384 / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.912e-05/0.3538, allocations: 23.94 kB / 1.028 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3541, allocations: 21.81 kB / 1.028 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005662/0.3547, allocations: 311.5 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.3551, allocations: 0.7241 MB / 1.029 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.3551, allocations: 19.44 kB / 1.029 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of SimCode: time 1.994e-06/0.3551, allocations: 0 / 1.029 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of Templates: time 0.003485/0.3586, allocations: 1.454 MB / 1.031 GB, free: 12.87 MB / 0.8106 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/jenkins1/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