Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001627, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002027/0.002027, allocations: 194 kB / 16.14 MB, free: 6.648 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.478/1.478, allocations: 222.9 MB / 239.8 MB, free: 4.578 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.505/2.505, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001243, allocations: 67.84 kB / 0.8119 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.811/0.8123, allocations: 140.3 MB / 0.9489 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00543/0.8178, allocations: 3.133 MB / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003677/0.8215, allocations: 1.727 MB / 0.9537 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002487/0.8218, allocations: 7.719 kB / 0.9537 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.823, allocations: 310.3 kB / 0.954 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006278/0.8236, allocations: 200.8 kB / 0.9542 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005496/0.8242, allocations: 164.7 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.8246, allocations: 461 kB / 0.9548 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004636/0.8251, allocations: 243.9 kB / 0.955 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.8253, allocations: 124.4 kB / 0.9551 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003637/0.8257, allocations: 160.7 kB / 0.9553 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.8257, allocations: 14.28 kB / 0.9553 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005775/0.8263, allocations: 292 kB / 0.9556 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.8265, allocations: 107.8 kB / 0.9557 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.8266, allocations: 113.5 kB / 0.9558 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.8271, allocations: 430.6 kB / 0.9562 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.8272, allocations: 0 / 0.9562 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.253e-06/0.8272, allocations: 0 / 0.9562 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.8272, allocations: 0 / 0.9562 GB, free: 3.938 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001081/0.8283, allocations: 0.5417 MB / 0.9567 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.8283, allocations: 9.875 kB / 0.9567 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007851/0.8291, allocations: 99.47 kB / 0.9568 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.8294, allocations: 256.8 kB / 0.9571 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.8295, allocations: 13.06 kB / 0.9571 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.8296, allocations: 33.03 kB / 0.9571 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006161/0.8302, allocations: 374.3 kB / 0.9575 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.8303, allocations: 9.078 kB / 0.9575 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.8303, allocations: 6.344 kB / 0.9575 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001119/0.8304, allocations: 28.36 kB / 0.9575 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005501/0.831, allocations: 307.1 kB / 0.9578 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.8328, allocations: 1.524 MB / 0.9593 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.8332, allocations: 233 kB / 0.9595 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.8334, allocations: 116.2 kB / 0.9596 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001351/0.8335, allocations: 83.27 kB / 0.9597 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.8336, allocations: 35.69 kB / 0.9597 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.412e-06/0.8336, allocations: 0 / 0.9597 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001321/0.8349, allocations: 0.8006 MB / 0.9605 GB, free: 396 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.8349, allocations: 53.97 kB / 0.9606 GB, free: 332 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.8351, allocations: 193.2 kB / 0.9607 GB, free: 180 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.8352, allocations: 35.16 kB / 0.9608 GB, free: 140 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.8353, allocations: 167.8 kB / 0.9609 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.95e-05/0.8354, allocations: 62.81 kB / 0.961 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.8355, allocations: 55.11 kB / 0.961 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.8357, allocations: 339.8 kB / 0.9614 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.8359, allocations: 116.6 kB / 0.9615 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.8361, allocations: 159.8 kB / 0.9616 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004307/0.8366, allocations: 306.1 kB / 0.9619 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.8366, allocations: 5.438 kB / 0.9619 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008256/0.8374, allocations: 420.5 kB / 0.9623 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.8374, allocations: 6.188 kB / 0.9623 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.8375, allocations: 2.531 kB / 0.9623 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.8379, allocations: 102.3 kB / 0.9624 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.8382, allocations: 52.94 kB / 0.9625 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/0.8403, allocations: 1.734 MB / 0.9642 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.8405, allocations: 15.58 kB / 0.9642 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.8406, allocations: 8.312 kB / 0.9642 GB, free: 13.29 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.8408, allocations: 156.6 kB / 0.9644 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.8409, allocations: 16.38 kB / 0.9644 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005717/0.8414, allocations: 308 kB / 0.9647 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.8414, allocations: 2.188 kB / 0.9647 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.8414, allocations: 0 / 0.9647 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.8415, allocations: 5.078 kB / 0.9647 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009856/0.8425, allocations: 0.7003 MB / 0.9654 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.8425, allocations: 4.812 kB / 0.9654 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003293/0.8428, allocations: 62.02 kB / 0.9654 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.8428, allocations: 2.219 kB / 0.9654 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.8428, allocations: 9.781 kB / 0.9654 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.8429, allocations: 2.188 kB / 0.9654 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.8429, allocations: 5.031 kB / 0.9654 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006942/0.8436, allocations: 0.5161 MB / 0.9659 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.8437, allocations: 115.1 kB / 0.9661 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.8437, allocations: 7.219 kB / 0.9661 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/0.8439, allocations: 18.05 kB / 0.9661 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.844, allocations: 13.34 kB / 0.9661 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.844, allocations: 5 kB / 0.9661 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001571/0.8442, allocations: 147.4 kB / 0.9662 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8442, allocations: 0 / 0.9662 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005134/0.8447, allocations: 61.75 kB / 0.9663 GB, free: 11.75 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.0001864/0.8449, allocations: 116 kB / 0.9664 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008054/0.8457, allocations: 415.9 kB / 0.9668 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.8457, allocations: 384 / 0.9668 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.8459, allocations: 129.1 kB / 0.9669 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.8463, allocations: 35.25 kB / 0.967 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.8477, allocations: 0.7205 MB / 0.9677 GB, free: 10.78 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.8482, allocations: 0.775 MB / 0.9684 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000203/0.8484, allocations: 55.75 kB / 0.9685 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.634e-05/0.8485, allocations: 23 kB / 0.9685 GB, free: 10 MB / 0.7325 GB Notification: Performance of SimCode: time 5.41e-07/0.8485, allocations: 0 / 0.9685 GB, free: 10 MB / 0.7325 GB Notification: Performance of Templates: time 0.007504/0.856, allocations: 2.688 MB / 0.9711 GB, free: 8.684 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches