Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001354/0.001354, allocations: 107.1 kB / 15.99 MB, free: 5.891 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.001272/0.001272, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.341/1.341, allocations: 222.9 MB / 240.6 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.545/2.545, allocations: 437 MB / 0.7107 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 59.91 kB / 0.8694 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7519/0.7533, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005624/0.759, allocations: 3.136 MB / 1.021 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002964/0.762, allocations: 1.698 MB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002361/0.7623, allocations: 7.938 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.7635, allocations: 311 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007027/0.7642, allocations: 211.2 kB / 1.023 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006341/0.7648, allocations: 167.7 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005494/0.7654, allocations: 307.1 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005367/0.7659, allocations: 270.7 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.7662, allocations: 139.5 kB / 1.024 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000405/0.7667, allocations: 163.5 kB / 1.024 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.009e-05/0.7667, allocations: 24 kB / 1.024 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005142/0.7672, allocations: 251.5 kB / 1.024 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.7674, allocations: 99.77 kB / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.7676, allocations: 119.4 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005159/0.7681, allocations: 327.2 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.7681, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7681, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.7681, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 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.001103/0.7692, allocations: 0.5575 MB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.7693, allocations: 12.03 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007683/0.7701, allocations: 96.55 kB / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.7704, allocations: 251.9 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.7705, allocations: 16.81 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.7706, allocations: 28.48 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005739/0.7711, allocations: 377.2 kB / 1.026 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.7712, allocations: 4 kB / 1.026 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.7712, allocations: 8 kB / 1.026 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/0.7713, allocations: 24.42 kB / 1.026 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004773/0.7718, allocations: 313.4 kB / 1.026 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.7736, allocations: 1.525 MB / 1.028 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.7741, allocations: 230.3 kB / 1.028 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.7742, allocations: 116.8 kB / 1.028 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001437/0.7744, allocations: 89.09 kB / 1.028 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.7744, allocations: 42.5 kB / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.7744, allocations: 0 / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001526/0.776, allocations: 0.791 MB / 1.029 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.776, allocations: 55.41 kB / 1.029 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.7763, allocations: 194.7 kB / 1.029 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.7763, allocations: 29.7 kB / 1.029 GB, free: 6.395 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.7765, allocations: 171.7 kB / 1.029 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/0.7766, allocations: 67.02 kB / 1.029 GB, free: 6.156 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.7767, allocations: 57.69 kB / 1.029 GB, free: 6.094 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.7768, allocations: 326.8 kB / 1.03 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.777, allocations: 115.9 kB / 1.03 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.7772, allocations: 174.9 kB / 1.03 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.7777, allocations: 287.4 kB / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.7777, allocations: 4 kB / 1.03 GB, free: 5.156 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008743/0.7785, allocations: 417.8 kB / 1.031 GB, free: 4.742 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.7786, allocations: 4 kB / 1.031 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.036e-06/0.7786, allocations: 4 kB / 1.031 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004504/0.779, allocations: 96.95 kB / 1.031 GB, free: 4.637 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/0.7793, allocations: 59.89 kB / 1.031 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/0.7817, allocations: 1.879 MB / 1.033 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.782, allocations: 19.92 kB / 1.033 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.782, allocations: 12 kB / 1.033 GB, free: 2.527 MB / 0.7794 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.0001825/0.7822, allocations: 153.8 kB / 1.033 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.952e-05/0.7823, allocations: 19.8 kB / 1.033 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004966/0.7828, allocations: 308.9 kB / 1.033 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.7828, allocations: 0 / 1.033 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.7828, allocations: 0 / 1.033 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.7828, allocations: 7.875 kB / 1.033 GB, free: 2.039 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000982/0.7838, allocations: 0.7043 MB / 1.034 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.7838, allocations: 3.984 kB / 1.034 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.7841, allocations: 51.97 kB / 1.034 GB, free: 1.219 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.7841, allocations: 8.047 kB / 1.034 GB, free: 1.211 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.7842, allocations: 15.88 kB / 1.034 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.7842, allocations: 3.938 kB / 1.034 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.7842, allocations: 0 / 1.034 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007384/0.7849, allocations: 0.5046 MB / 1.034 GB, free: 0.6641 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.7851, allocations: 120.9 kB / 1.035 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.7851, allocations: 12.06 kB / 1.035 GB, free: 0.5156 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.7853, allocations: 12.05 kB / 1.035 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.7853, allocations: 15.98 kB / 1.035 GB, free: 500 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.7854, allocations: 4 kB / 1.035 GB, free: 496 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001475/0.7855, allocations: 156 kB / 1.035 GB, free: 336 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7855, allocations: 0 / 1.035 GB, free: 336 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003856/0.7859, allocations: 64 kB / 1.035 GB, free: 272 kB / 0.7794 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.0001842/0.7861, allocations: 107.2 kB / 1.035 GB, free: 156 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008223/0.7869, allocations: 442.3 kB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.787, allocations: 0 / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.7871, allocations: 127.8 kB / 1.035 GB, free: 15.58 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.7876, allocations: 52.17 kB / 1.035 GB, free: 15.54 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.7892, allocations: 0.7617 MB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005278/0.7898, allocations: 0.7675 MB / 1.037 GB, free: 13.94 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.737e-05/0.7899, allocations: 23.44 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of SimCode: time 4.81e-07/0.7899, allocations: 0 / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of Templates: time 0.008196/0.7981, allocations: 3.59 MB / 1.04 GB, free: 10.33 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches