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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001737/0.001738, allocations: 108 kB / 15.6 MB, free: 128 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.002096/0.002096, allocations: 197.3 kB / 16.53 MB, free: 6.672 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.832/2.832, allocations: 472.7 MB / 0.7452 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001187, allocations: 68.62 kB / 0.9121 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3372, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004342/0.3416, allocations: 2.502 MB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001346/0.3429, allocations: 0.7828 MB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.88e-05/0.343, allocations: 4 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.3443, allocations: 0.5259 MB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002994/0.3446, allocations: 107.5 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.3449, allocations: 111.8 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.3451, allocations: 203.2 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003851/0.3455, allocations: 169.9 kB / 1.073 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.665e-05/0.3456, allocations: 75.77 kB / 1.073 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.3459, allocations: 91.66 kB / 1.073 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.3459, allocations: 12 kB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.3461, allocations: 115.8 kB / 1.073 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.711e-05/0.3462, allocations: 55.83 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.113e-05/0.3463, allocations: 79.64 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.3466, allocations: 211.6 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3466, allocations: 4 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3466, allocations: 0 / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.3466, allocations: 0 / 1.073 GB, free: 5.344 MB / 0.8262 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.000668/0.3473, allocations: 443.2 kB / 1.074 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.3473, allocations: 8.031 kB / 1.074 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000384/0.3477, allocations: 52.7 kB / 1.074 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.3479, allocations: 204.1 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.348, allocations: 20.64 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.348, allocations: 12.38 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004171/0.3484, allocations: 229.1 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.3484, allocations: 3.938 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.3485, allocations: 8 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.451e-05/0.3485, allocations: 20.27 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002326/0.3488, allocations: 144.7 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.3498, allocations: 1.138 MB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.207e-05/0.3499, allocations: 42.56 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.35, allocations: 20.94 kB / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.35, allocations: 0 / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.35, allocations: 30.56 kB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.35, allocations: 4 kB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0001946/0.3502, allocations: 81.47 kB / 1.076 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.3503, allocations: 51.41 kB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.3504, allocations: 172.8 kB / 1.076 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.3504, allocations: 25.7 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.532e-05/0.3505, allocations: 143.4 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.3506, allocations: 19.75 kB / 1.076 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.893e-05/0.3506, allocations: 33.7 kB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3507, allocations: 326.8 kB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.451e-05/0.3508, allocations: 24.84 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.697e-05/0.3509, allocations: 93.31 kB / 1.076 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.351, allocations: 121.3 kB / 1.076 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.351, allocations: 0 / 1.076 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001981/0.3512, allocations: 133.3 kB / 1.077 GB, free: 1.402 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3513, allocations: 8.312 kB / 1.077 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.3513, allocations: 4 kB / 1.077 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3513, allocations: 7.938 kB / 1.077 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.3514, allocations: 27.98 kB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3514, allocations: 7.938 kB / 1.077 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.168e-05/0.3515, allocations: 19.75 kB / 1.077 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.3515, allocations: 8 kB / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.69e-05/0.3516, allocations: 125.9 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.653e-05/0.3517, allocations: 85.44 kB / 1.077 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001279/0.3518, allocations: 125.3 kB / 1.077 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.505e-06/0.3519, allocations: 3.938 kB / 1.077 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001845/0.352, allocations: 141.5 kB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/0.3521, allocations: 5.406 kB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.3521, allocations: 4 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.989e-06/0.3521, allocations: 4 kB / 1.077 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.593e-05/0.3522, allocations: 27.92 kB / 1.077 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.3522, allocations: 3.938 kB / 1.077 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.79e-05/0.3522, allocations: 4 kB / 1.077 GB, free: 0.7266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.3522, allocations: 8.312 kB / 1.077 GB, free: 0.7188 MB / 0.8262 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 9.503e-05/0.3523, allocations: 196.7 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.3524, allocations: 11.81 kB / 1.077 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.421e-05/0.3524, allocations: 12.94 kB / 1.077 GB, free: 500 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3524, allocations: 7.922 kB / 1.077 GB, free: 492 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3524, allocations: 0 / 1.077 GB, free: 492 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3525, allocations: 0 / 1.077 GB, free: 492 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000425/0.3529, allocations: 473.1 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3529, allocations: 4 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.244e-05/0.3529, allocations: 4 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.3529, allocations: 4 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.353, allocations: 0 / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.353, allocations: 0 / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.353, allocations: 4 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.3531, allocations: 123.6 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.3532, allocations: 88.92 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.3532, allocations: 0 / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.721e-05/0.3532, allocations: 3.984 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.3532, allocations: 4 kB / 1.078 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.3533, allocations: 4 kB / 1.078 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.702e-05/0.3534, allocations: 133.8 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2e-07/0.3534, allocations: 0 / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003594/0.3537, allocations: 51.84 kB / 1.078 GB, free: 15.49 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 9.193e-05/0.3538, allocations: 95.25 kB / 1.078 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.3541, allocations: 116.5 kB / 1.078 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3541, allocations: 0 / 1.078 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.788e-05/0.3541, allocations: 23.92 kB / 1.078 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.3544, allocations: 21.34 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.3549, allocations: 287.7 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.3552, allocations: 0.7241 MB / 1.079 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.881e-05/0.3553, allocations: 28.55 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.3553, allocations: 15.44 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.3553, allocations: 4 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of Templates: time 0.00312/0.3584, allocations: 0.8553 MB / 1.08 GB, free: 13.27 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches