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.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.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.001262/0.001261, allocations: 98.88 kB / 16.02 MB, free: 76 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.001673/0.001673, allocations: 185.3 kB / 16.92 MB, free: 6.77 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.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.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.446/2.446, allocations: 390.9 MB / 0.667 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003791/0.0003792, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7185/0.7189, allocations: 142.4 MB / 0.9557 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00307/0.7221, allocations: 2.769 MB / 0.9584 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002229/0.7243, allocations: 1.692 MB / 0.9601 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.7245, allocations: 7.125 kB / 0.9601 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.7246, allocations: 37.11 kB / 0.9601 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004402/0.7251, allocations: 199.8 kB / 0.9603 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.7255, allocations: 163 kB / 0.9605 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.7259, allocations: 472.1 kB / 0.9609 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008349/0.7268, allocations: 0.5242 MB / 0.9614 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.727, allocations: 111.6 kB / 0.9615 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002938/0.7273, allocations: 149.1 kB / 0.9617 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.7273, allocations: 10.5 kB / 0.9617 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004422/0.7278, allocations: 288 kB / 0.962 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.7279, allocations: 87 kB / 0.962 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.728, allocations: 135.5 kB / 0.9622 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.7283, allocations: 324.6 kB / 0.9625 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.7283, allocations: 0 / 0.9625 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7284, allocations: 0 / 0.9625 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.7284, allocations: 0 / 0.9625 GB, free: 2.734 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.0007927/0.7292, allocations: 0.5053 MB / 0.963 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.7292, allocations: 8.781 kB / 0.963 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007402/0.73, allocations: 101.4 kB / 0.9631 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/0.7302, allocations: 252.9 kB / 0.9633 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.7302, allocations: 13.12 kB / 0.9633 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.653e-05/0.7304, allocations: 28.86 kB / 0.9634 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005381/0.7309, allocations: 378.4 kB / 0.9637 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.7309, allocations: 1.406 kB / 0.9637 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.731, allocations: 10.59 kB / 0.9637 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.912e-05/0.7311, allocations: 28.48 kB / 0.9638 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/0.7315, allocations: 305.9 kB / 0.964 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.733, allocations: 1.533 MB / 0.9655 GB, free: 96 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.7334, allocations: 226.3 kB / 0.9658 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.7336, allocations: 116.2 kB / 0.9659 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001761/0.7338, allocations: 91.03 kB / 0.966 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.7338, allocations: 36.5 kB / 0.966 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 2.054e-06/0.7338, allocations: 0 / 0.966 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001314/0.7351, allocations: 0.7994 MB / 0.9668 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.7352, allocations: 54.16 kB / 0.9668 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002015/0.7354, allocations: 189.3 kB / 0.967 GB, free: 15 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.7354, allocations: 30.7 kB / 0.967 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.7356, allocations: 164.4 kB / 0.9672 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.02e-05/0.7356, allocations: 67.23 kB / 0.9673 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-05/0.7357, allocations: 29.55 kB / 0.9673 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.7358, allocations: 335 kB / 0.9676 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.736, allocations: 120.7 kB / 0.9677 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.7363, allocations: 164.6 kB / 0.9679 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.7367, allocations: 297.4 kB / 0.9682 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.7367, allocations: 1 kB / 0.9682 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009286/0.7376, allocations: 424.3 kB / 0.9686 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.7377, allocations: 6.156 kB / 0.9686 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.7377, allocations: 2.156 kB / 0.9686 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005057/0.7382, allocations: 101.9 kB / 0.9687 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.7385, allocations: 50.06 kB / 0.9687 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.7406, allocations: 1.742 MB / 0.9704 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002217/0.7408, allocations: 15.83 kB / 0.9704 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.7409, allocations: 8.219 kB / 0.9704 GB, free: 12.12 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.0001923/0.7411, allocations: 160.2 kB / 0.9706 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.843e-05/0.7411, allocations: 16.88 kB / 0.9706 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005309/0.7417, allocations: 295.3 kB / 0.9709 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.7417, allocations: 2.406 kB / 0.9709 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-06/0.7417, allocations: 0 / 0.9709 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.7417, allocations: 1.031 kB / 0.9709 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000962/0.7427, allocations: 0.7102 MB / 0.9716 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.7427, allocations: 7.984 kB / 0.9716 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003769/0.7431, allocations: 58.72 kB / 0.9717 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.425e-05/0.7431, allocations: 5.984 kB / 0.9717 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.7431, allocations: 6.062 kB / 0.9717 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.7431, allocations: 1.219 kB / 0.9717 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.7431, allocations: 5.031 kB / 0.9717 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008129/0.744, allocations: 0.5106 MB / 0.9722 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.7441, allocations: 120.6 kB / 0.9723 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.514e-05/0.7441, allocations: 6.531 kB / 0.9723 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.7443, allocations: 14.08 kB / 0.9723 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.7443, allocations: 13.55 kB / 0.9723 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.7444, allocations: 5.406 kB / 0.9723 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001482/0.7445, allocations: 142.9 kB / 0.9725 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7445, allocations: 0 / 0.9725 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004065/0.7449, allocations: 69.77 kB / 0.9725 GB, free: 10.59 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.0001666/0.7451, allocations: 118.2 kB / 0.9726 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007546/0.7459, allocations: 418.2 kB / 0.973 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.7459, allocations: 0.9375 kB / 0.973 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.7461, allocations: 122.2 kB / 0.9732 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004168/0.7465, allocations: 41.91 kB / 0.9732 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.7478, allocations: 0.8132 MB / 0.974 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.7482, allocations: 0.7753 MB / 0.9747 GB, free: 8.789 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.09e-05/0.7483, allocations: 20.12 kB / 0.9748 GB, free: 8.781 MB / 0.7325 GB Notification: Performance of SimCode: time 3.1e-07/0.7483, allocations: 0 / 0.9748 GB, free: 8.781 MB / 0.7325 GB Notification: Performance of Templates: time 0.006535/0.7549, allocations: 3.571 MB / 0.9783 GB, free: 6.949 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/jenkins1/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