Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001524/0.001524, allocations: 109.6 kB / 15.99 MB, free: 6.367 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.001523/0.001523, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.362/1.362, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.593/2.593, allocations: 469.8 MB / 0.7427 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 62.28 kB / 0.9087 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3272, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004725/0.332, allocations: 2.546 MB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.3335, allocations: 0.7751 MB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.3337, allocations: 0 / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.3351, allocations: 0.5143 MB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003158/0.3354, allocations: 99.59 kB / 1.068 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003381/0.3357, allocations: 103.8 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.336, allocations: 191.5 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003914/0.3364, allocations: 186.1 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.769e-05/0.3365, allocations: 75.77 kB / 1.069 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.3368, allocations: 99.66 kB / 1.069 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.3368, allocations: 12 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002137/0.337, allocations: 115.8 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.3371, allocations: 63.81 kB / 1.069 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.402e-05/0.3372, allocations: 71.66 kB / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.3375, allocations: 171.9 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3375, allocations: 3.938 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3375, allocations: 4 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.3375, allocations: 0 / 1.069 GB, free: 10.1 MB / 0.8419 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.0006602/0.3382, allocations: 443.3 kB / 1.069 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.3382, allocations: 8.031 kB / 1.069 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003735/0.3386, allocations: 52.7 kB / 1.07 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.3388, allocations: 208.1 kB / 1.07 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.3389, allocations: 12.66 kB / 1.07 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.156e-05/0.3389, allocations: 28.28 kB / 1.07 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/0.3393, allocations: 223.2 kB / 1.07 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3393, allocations: 0 / 1.07 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.3393, allocations: 12 kB / 1.07 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-05/0.3394, allocations: 20.27 kB / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.3396, allocations: 148.6 kB / 1.07 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.3408, allocations: 1.127 MB / 1.071 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.42e-05/0.3409, allocations: 42.56 kB / 1.071 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.762e-05/0.3409, allocations: 20.94 kB / 1.071 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.341, allocations: 0 / 1.071 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.341, allocations: 38.5 kB / 1.071 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 7.82e-07/0.341, allocations: 0 / 1.071 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0002075/0.3412, allocations: 81.47 kB / 1.071 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.3413, allocations: 55.39 kB / 1.071 GB, free: 7.328 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.3414, allocations: 167.1 kB / 1.072 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.3415, allocations: 25.7 kB / 1.072 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.3416, allocations: 147.3 kB / 1.072 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.3416, allocations: 19.75 kB / 1.072 GB, free: 6.957 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.3416, allocations: 33.7 kB / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.3418, allocations: 322.8 kB / 1.072 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.862e-05/0.3418, allocations: 28.84 kB / 1.072 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.996e-05/0.3419, allocations: 89.38 kB / 1.072 GB, free: 6.441 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001563/0.3421, allocations: 117.3 kB / 1.072 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3421, allocations: 0 / 1.072 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002083/0.3423, allocations: 141.6 kB / 1.072 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3424, allocations: 8 kB / 1.073 GB, free: 6.141 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3424, allocations: 0 / 1.073 GB, free: 6.141 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3424, allocations: 7.938 kB / 1.073 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.3425, allocations: 27.92 kB / 1.073 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.3425, allocations: 4 kB / 1.073 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.955e-05/0.3426, allocations: 11.84 kB / 1.073 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.3426, allocations: 8 kB / 1.073 GB, free: 6.082 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001126/0.3427, allocations: 128.7 kB / 1.073 GB, free: 5.953 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.215e-05/0.3428, allocations: 95.8 kB / 1.073 GB, free: 5.828 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001392/0.343, allocations: 125.5 kB / 1.073 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.142e-06/0.343, allocations: 0 / 1.073 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001925/0.3432, allocations: 141.3 kB / 1.073 GB, free: 5.527 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.813e-06/0.3432, allocations: 4 kB / 1.073 GB, free: 5.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3432, allocations: 4 kB / 1.073 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.519e-06/0.3432, allocations: 4 kB / 1.073 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.244e-05/0.3433, allocations: 27.92 kB / 1.073 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/0.3433, allocations: 7.922 kB / 1.073 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.817e-05/0.3434, allocations: 8.312 kB / 1.073 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.3434, allocations: 12 kB / 1.073 GB, free: 5.461 MB / 0.8419 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.0001099/0.3435, allocations: 188.1 kB / 1.073 GB, free: 5.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/0.3435, allocations: 7.906 kB / 1.073 GB, free: 5.262 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.001e-05/0.3436, allocations: 20.92 kB / 1.073 GB, free: 5.234 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3436, allocations: 3.938 kB / 1.073 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3436, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3436, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.3441, allocations: 473 kB / 1.074 GB, free: 4.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3441, allocations: 8 kB / 1.074 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.015e-05/0.3441, allocations: 4 kB / 1.074 GB, free: 4.688 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3441, allocations: 4 kB / 1.074 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.3441, allocations: 3.938 kB / 1.074 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3441, allocations: 0 / 1.074 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3442, allocations: 4 kB / 1.074 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.3443, allocations: 119.6 kB / 1.074 GB, free: 4.531 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.3444, allocations: 89.02 kB / 1.074 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.3444, allocations: 3.984 kB / 1.074 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.301e-05/0.3444, allocations: 0 / 1.074 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.3445, allocations: 12 kB / 1.074 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.3445, allocations: 0 / 1.074 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000102/0.3446, allocations: 124.9 kB / 1.074 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.415e-06/0.3446, allocations: 0 / 1.074 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003379/0.3449, allocations: 59.69 kB / 1.074 GB, free: 4.23 MB / 0.8419 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.0001287/0.3451, allocations: 101.5 kB / 1.074 GB, free: 4.121 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002197/0.3453, allocations: 111.9 kB / 1.074 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3453, allocations: 0 / 1.074 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.812e-05/0.3453, allocations: 23.92 kB / 1.074 GB, free: 3.988 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.3456, allocations: 18.05 kB / 1.074 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005814/0.3462, allocations: 366.1 kB / 1.075 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.3466, allocations: 0.7279 MB / 1.075 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.3466, allocations: 11.44 kB / 1.075 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.3466, allocations: 0 / 1.075 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of Templates: time 0.00311/0.3497, allocations: 1.445 MB / 1.077 GB, free: 1.367 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches