Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001667/0.001667, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001961/0.001961, allocations: 192 kB / 17.31 MB, free: 5.18 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.495/1.495, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 69.17 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3325, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004315/0.3369, allocations: 2.506 MB / 0.9536 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.3383, allocations: 0.779 MB / 0.9543 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.3385, allocations: 4 kB / 0.9543 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001325/0.3398, allocations: 0.5336 MB / 0.9549 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003243/0.3401, allocations: 103.5 kB / 0.955 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.3405, allocations: 107.7 kB / 0.9551 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002863/0.3408, allocations: 203.4 kB / 0.9552 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003723/0.3412, allocations: 154.1 kB / 0.9554 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.3413, allocations: 83.73 kB / 0.9555 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/0.3415, allocations: 95.66 kB / 0.9556 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.3416, allocations: 12 kB / 0.9556 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.3418, allocations: 103.8 kB / 0.9557 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.839e-05/0.3419, allocations: 55.89 kB / 0.9557 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.52e-05/0.342, allocations: 79.61 kB / 0.9558 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.3423, allocations: 227.3 kB / 0.956 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3423, allocations: 3.938 kB / 0.956 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3423, allocations: 0 / 0.956 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.3423, allocations: 0 / 0.956 GB, free: 3.004 MB / 0.7325 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.0006241/0.3429, allocations: 447.2 kB / 0.9565 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.343, allocations: 12.03 kB / 0.9565 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003794/0.3434, allocations: 44.8 kB / 0.9565 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.3437, allocations: 212.1 kB / 0.9567 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.3437, allocations: 8.656 kB / 0.9567 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.639e-05/0.3437, allocations: 12.38 kB / 0.9567 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.3441, allocations: 235.2 kB / 0.957 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.3441, allocations: 4 kB / 0.957 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.3442, allocations: 4 kB / 0.957 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.3442, allocations: 12.28 kB / 0.957 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.3444, allocations: 156.6 kB / 0.9571 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.3455, allocations: 1.134 MB / 0.9582 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.004e-05/0.3456, allocations: 42.48 kB / 0.9583 GB, free: 464 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.794e-05/0.3457, allocations: 20.94 kB / 0.9583 GB, free: 440 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.3457, allocations: 0 / 0.9583 GB, free: 440 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.3457, allocations: 30.56 kB / 0.9583 GB, free: 400 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.3457, allocations: 4 kB / 0.9583 GB, free: 396 kB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002088/0.3459, allocations: 81.52 kB / 0.9584 GB, free: 308 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.346, allocations: 51.41 kB / 0.9585 GB, free: 244 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.3462, allocations: 171 kB / 0.9586 GB, free: 64 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.3462, allocations: 25.7 kB / 0.9586 GB, free: 32 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.3463, allocations: 139.4 kB / 0.9588 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3463, allocations: 19.73 kB / 0.9588 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-05/0.3464, allocations: 37.62 kB / 0.9588 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3465, allocations: 322.8 kB / 0.9591 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.621e-05/0.3465, allocations: 28.84 kB / 0.9592 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.612e-05/0.3466, allocations: 88.88 kB / 0.9592 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.3468, allocations: 125.3 kB / 0.9594 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3468, allocations: 3.938 kB / 0.9594 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001957/0.347, allocations: 129.4 kB / 0.9595 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.347, allocations: 12.3 kB / 0.9595 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.347, allocations: 8 kB / 0.9595 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3471, allocations: 3.938 kB / 0.9595 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.3472, allocations: 23.94 kB / 0.9595 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.3472, allocations: 7.984 kB / 0.9595 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.047e-05/0.3473, allocations: 23.78 kB / 0.9596 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.3473, allocations: 4 kB / 0.9596 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001014/0.3474, allocations: 120.1 kB / 0.9597 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.71e-05/0.3475, allocations: 93.36 kB / 0.9598 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001189/0.3476, allocations: 121.2 kB / 0.9599 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.332e-06/0.3476, allocations: 0 / 0.9599 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001862/0.3478, allocations: 137.3 kB / 0.96 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.3478, allocations: 10.5 kB / 0.96 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.3478, allocations: 4 kB / 0.96 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.568e-06/0.3478, allocations: 4 kB / 0.96 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.377e-05/0.3479, allocations: 27.98 kB / 0.9601 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.097e-05/0.3479, allocations: 15.86 kB / 0.9601 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.884e-05/0.348, allocations: 7.906 kB / 0.9601 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.348, allocations: 4.312 kB / 0.9601 GB, free: 14.37 MB / 0.7481 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.0001003/0.3481, allocations: 192.2 kB / 0.9603 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.3481, allocations: 7.906 kB / 0.9603 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.148e-05/0.3482, allocations: 16.92 kB / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3482, allocations: 4.219 kB / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3482, allocations: 0 / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.3482, allocations: 4 kB / 0.9603 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004137/0.3486, allocations: 481 kB / 0.9608 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3486, allocations: 3.984 kB / 0.9608 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.198e-05/0.3487, allocations: 8 kB / 0.9608 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3487, allocations: 0 / 0.9608 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.3487, allocations: 0 / 0.9608 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.3487, allocations: 4 kB / 0.9608 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3487, allocations: 7.922 kB / 0.9608 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.3488, allocations: 111.7 kB / 0.9609 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.142e-05/0.3489, allocations: 93 kB / 0.961 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.3489, allocations: 4 kB / 0.961 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.338e-05/0.349, allocations: 0 / 0.961 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.895e-05/0.349, allocations: 0 / 0.961 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.349, allocations: 8 kB / 0.961 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.192e-05/0.3491, allocations: 132.8 kB / 0.9611 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3491, allocations: 0 / 0.9611 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003434/0.3495, allocations: 51.84 kB / 0.9612 GB, free: 13.14 MB / 0.7481 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.0001118/0.3496, allocations: 106.2 kB / 0.9613 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001989/0.3498, allocations: 116.5 kB / 0.9614 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3498, allocations: 0 / 0.9614 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.364e-05/0.3498, allocations: 8 kB / 0.9614 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.3501, allocations: 31.86 kB / 0.9614 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005126/0.3506, allocations: 287.5 kB / 0.9617 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.3509, allocations: 0.7202 MB / 0.9624 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.088e-05/0.351, allocations: 32.61 kB / 0.9624 GB, free: 11.78 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.3511, allocations: 11.44 kB / 0.9624 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.3511, allocations: 0 / 0.9624 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of Templates: time 0.003333/0.3544, allocations: 0.8341 MB / 0.9633 GB, free: 10.94 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches