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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001473/0.001473, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001639/0.001639, allocations: 192.1 kB / 16.14 MB, free: 6.719 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.386/2.386, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 68.12 kB / 0.8118 GB, free: 14.92 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8007/0.802, allocations: 140.4 MB / 0.9489 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00433/0.8064, allocations: 2.556 MB / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001355/0.8078, allocations: 0.7774 MB / 0.9522 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.808, allocations: 3.031 kB / 0.9522 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.8093, allocations: 0.5114 MB / 0.9527 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003277/0.8097, allocations: 100.4 kB / 0.9528 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.81, allocations: 97.78 kB / 0.9529 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00036/0.8104, allocations: 292.7 kB / 0.9531 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.8107, allocations: 125 kB / 0.9533 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.8109, allocations: 69.05 kB / 0.9533 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003179/0.8112, allocations: 88.08 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.8112, allocations: 13.61 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003622/0.8116, allocations: 139.7 kB / 0.9536 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.074e-05/0.8117, allocations: 55.98 kB / 0.9536 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.8118, allocations: 76.36 kB / 0.9537 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.8122, allocations: 222.6 kB / 0.9539 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.8123, allocations: 0 / 0.9539 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.312e-06/0.8123, allocations: 0 / 0.9539 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.8123, allocations: 1.156 kB / 0.9539 GB, free: 5.469 MB / 0.7169 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.000866/0.8132, allocations: 448.4 kB / 0.9543 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.082e-05/0.8132, allocations: 9.625 kB / 0.9543 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004789/0.8137, allocations: 45.23 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.814, allocations: 214.9 kB / 0.9546 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.814, allocations: 10.16 kB / 0.9546 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.814, allocations: 13.03 kB / 0.9546 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.8145, allocations: 232.9 kB / 0.9548 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.8145, allocations: 1.156 kB / 0.9548 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.8145, allocations: 5.188 kB / 0.9548 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.105e-05/0.8146, allocations: 19.72 kB / 0.9549 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003034/0.8149, allocations: 146.8 kB / 0.955 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.8161, allocations: 1.127 MB / 0.9561 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.851e-05/0.8162, allocations: 40.69 kB / 0.9561 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.198e-05/0.8162, allocations: 20.3 kB / 0.9561 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.8163, allocations: 96 / 0.9561 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.8163, allocations: 43.86 kB / 0.9562 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.412e-06/0.8163, allocations: 4 kB / 0.9562 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002208/0.8165, allocations: 80.16 kB / 0.9563 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.086e-05/0.8165, allocations: 51.41 kB / 0.9563 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.8167, allocations: 174.2 kB / 0.9565 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.548e-06/0.8167, allocations: 33.64 kB / 0.9565 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.8168, allocations: 142.4 kB / 0.9567 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.22e-05/0.8168, allocations: 11.8 kB / 0.9567 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.265e-05/0.8169, allocations: 36.02 kB / 0.9567 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.593e-05/0.8169, allocations: 326.6 kB / 0.957 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.597e-05/0.817, allocations: 28.33 kB / 0.957 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.782e-05/0.817, allocations: 85.05 kB / 0.9571 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.8172, allocations: 129.3 kB / 0.9572 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.8172, allocations: 0 / 0.9572 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002002/0.8174, allocations: 133.1 kB / 0.9574 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.8174, allocations: 6.531 kB / 0.9574 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.8174, allocations: 6.906 kB / 0.9574 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.8174, allocations: 7.281 kB / 0.9574 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.8176, allocations: 27.42 kB / 0.9574 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.8176, allocations: 4.406 kB / 0.9574 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.307e-05/0.8177, allocations: 20.5 kB / 0.9574 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.8177, allocations: 7.312 kB / 0.9574 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.425e-05/0.8178, allocations: 120 kB / 0.9576 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.622e-05/0.8178, allocations: 85.53 kB / 0.9576 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.824e-05/0.818, allocations: 127.1 kB / 0.9578 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.915e-06/0.818, allocations: 1.312 kB / 0.9578 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001812/0.8181, allocations: 137.5 kB / 0.9579 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.996e-06/0.8182, allocations: 5.5 kB / 0.9579 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.8182, allocations: 2.75 kB / 0.9579 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.402e-06/0.8182, allocations: 2.75 kB / 0.9579 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.253e-05/0.8183, allocations: 24.56 kB / 0.9579 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.8183, allocations: 14.61 kB / 0.9579 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.026e-05/0.8183, allocations: 12.03 kB / 0.958 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.8184, allocations: 9.797 kB / 0.958 GB, free: 1.66 MB / 0.7169 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 6.916e-05/0.8184, allocations: 188.4 kB / 0.9581 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.463e-05/0.8185, allocations: 8.031 kB / 0.9582 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.354e-05/0.8185, allocations: 13.06 kB / 0.9582 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.8185, allocations: 3.938 kB / 0.9582 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.8185, allocations: 1.375 kB / 0.9582 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.8185, allocations: 3.984 kB / 0.9582 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003618/0.8189, allocations: 481.2 kB / 0.9586 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.8189, allocations: 1.094 kB / 0.9586 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.495e-05/0.819, allocations: 6.812 kB / 0.9586 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.819, allocations: 1.312 kB / 0.9586 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.819, allocations: 1.125 kB / 0.9586 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.819, allocations: 0.9688 kB / 0.9586 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.819, allocations: 1.719 kB / 0.9586 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.8191, allocations: 122.9 kB / 0.9588 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/0.8192, allocations: 89.73 kB / 0.9588 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/0.8192, allocations: 2.969 kB / 0.9589 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.606e-05/0.8192, allocations: 4 kB / 0.9589 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.15e-05/0.8193, allocations: 6.297 kB / 0.9589 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.8193, allocations: 6.844 kB / 0.9589 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.126e-05/0.8194, allocations: 126.5 kB / 0.959 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8194, allocations: 0 / 0.959 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003981/0.8198, allocations: 52.09 kB / 0.959 GB, free: 0.6211 MB / 0.7169 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.00012/0.8199, allocations: 102.7 kB / 0.9591 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002405/0.8202, allocations: 109.1 kB / 0.9592 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.8202, allocations: 1.344 kB / 0.9592 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.21e-05/0.8202, allocations: 22.14 kB / 0.9593 GB, free: 480 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.8205, allocations: 21.84 kB / 0.9593 GB, free: 468 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000575/0.8211, allocations: 324.6 kB / 0.9596 GB, free: 188 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.8214, allocations: 0.7254 MB / 0.9603 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000104/0.8215, allocations: 23.72 kB / 0.9603 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.935e-05/0.8216, allocations: 17.39 kB / 0.9603 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.8216, allocations: 4 kB / 0.9603 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of Templates: time 0.004029/0.8256, allocations: 0.8164 MB / 0.9611 GB, free: 15.03 MB / 0.7325 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 -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/jenkins/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