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.001608/0.001608, allocations: 104.3 kB / 16.27 MB, free: 6.418 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.00201/0.00201, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.498/1.498, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.726/2.726, allocations: 437.1 MB / 0.711 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 62.78 kB / 0.8699 GB, free: 2.25 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3485, allocations: 151.6 MB / 1.018 GB, free: 10.69 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005665/0.3542, allocations: 3.071 MB / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003367/0.3576, allocations: 1.733 MB / 1.023 GB, free: 5.859 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002546/0.3579, allocations: 7.938 kB / 1.023 GB, free: 5.852 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.3592, allocations: 334.7 kB / 1.023 GB, free: 5.523 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0007515/0.36, allocations: 215.1 kB / 1.023 GB, free: 5.312 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.3607, allocations: 180.1 kB / 1.023 GB, free: 5.137 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0006261/0.3613, allocations: 315 kB / 1.024 GB, free: 4.828 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005344/0.3619, allocations: 245 kB / 1.024 GB, free: 4.59 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002976/0.3622, allocations: 135.5 kB / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004903/0.3627, allocations: 159.4 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.709e-05/0.3627, allocations: 20 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005714/0.3633, allocations: 247.6 kB / 1.024 GB, free: 4.039 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.3635, allocations: 103.7 kB / 1.025 GB, free: 3.938 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.3637, allocations: 123.4 kB / 1.025 GB, free: 3.816 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007997/0.3645, allocations: 418.8 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3645, allocations: 0 / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3645, allocations: 0 / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.3646, allocations: 0 / 1.025 GB, free: 3.406 MB / 0.795 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.001426/0.366, allocations: 0.542 MB / 1.026 GB, free: 2.812 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.366, allocations: 12.03 kB / 1.026 GB, free: 2.801 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008899/0.3669, allocations: 96.55 kB / 1.026 GB, free: 2.707 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.3674, allocations: 248 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/0.3674, allocations: 20.78 kB / 1.026 GB, free: 2.406 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3675, allocations: 24.56 kB / 1.026 GB, free: 2.383 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007036/0.3683, allocations: 381.1 kB / 1.026 GB, free: 1.988 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.3683, allocations: 0 / 1.026 GB, free: 1.988 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.3683, allocations: 8 kB / 1.026 GB, free: 1.98 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.3685, allocations: 28.42 kB / 1.026 GB, free: 1.953 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005494/0.369, allocations: 305.5 kB / 1.027 GB, free: 1.652 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002405/0.3714, allocations: 1.533 MB / 1.028 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005366/0.372, allocations: 230.4 kB / 1.028 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.3722, allocations: 113.1 kB / 1.028 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001659/0.3723, allocations: 89.09 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/0.3724, allocations: 42.39 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.3724, allocations: 4 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.001504/0.3739, allocations: 0.7985 MB / 1.029 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.374, allocations: 51.41 kB / 1.029 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.3742, allocations: 191.5 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.3743, allocations: 29.7 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.3744, allocations: 163.8 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.325e-05/0.3745, allocations: 67 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3747, allocations: 61.69 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001946/0.3749, allocations: 330.8 kB / 1.03 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.3751, allocations: 119.9 kB / 1.03 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.3754, allocations: 167.5 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.3759, allocations: 296 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3759, allocations: 0 / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008716/0.3768, allocations: 422.6 kB / 1.031 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.3768, allocations: 4 kB / 1.031 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3768, allocations: 0 / 1.031 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000483/0.3773, allocations: 100.9 kB / 1.031 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3776, allocations: 51.89 kB / 1.031 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/0.3802, allocations: 1.879 MB / 1.033 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.3805, allocations: 19.92 kB / 1.033 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.3805, allocations: 8.125 kB / 1.033 GB, free: 10.46 MB / 0.8106 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.0002241/0.3808, allocations: 161.8 kB / 1.033 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.3808, allocations: 15.81 kB / 1.033 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000582/0.3814, allocations: 303.2 kB / 1.034 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3814, allocations: 4 kB / 1.034 GB, free: 9.973 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.3814, allocations: 0 / 1.034 GB, free: 9.973 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3815, allocations: 7.938 kB / 1.034 GB, free: 9.965 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.3826, allocations: 0.7106 MB / 1.034 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3826, allocations: 0 / 1.034 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003044/0.3829, allocations: 55.95 kB / 1.034 GB, free: 9.137 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.383, allocations: 4 kB / 1.034 GB, free: 9.133 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.383, allocations: 7.922 kB / 1.034 GB, free: 9.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.383, allocations: 4 kB / 1.034 GB, free: 9.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.383, allocations: 0 / 1.034 GB, free: 9.121 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006904/0.3837, allocations: 0.5175 MB / 1.035 GB, free: 8.586 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.3839, allocations: 120.9 kB / 1.035 GB, free: 8.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.742e-05/0.3839, allocations: 4 kB / 1.035 GB, free: 8.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.3841, allocations: 11.98 kB / 1.035 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.3841, allocations: 11.98 kB / 1.035 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.3842, allocations: 12.06 kB / 1.035 GB, free: 8.41 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001642/0.3843, allocations: 144.6 kB / 1.035 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3843, allocations: 0 / 1.035 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004115/0.3848, allocations: 68 kB / 1.035 GB, free: 8.199 MB / 0.8106 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.0002265/0.385, allocations: 115.7 kB / 1.035 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008772/0.3859, allocations: 443.9 kB / 1.036 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3859, allocations: 3.938 kB / 1.036 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.3861, allocations: 123.9 kB / 1.036 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.3865, allocations: 46.39 kB / 1.036 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.388, allocations: 0.6652 MB / 1.037 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004954/0.3885, allocations: 0.7792 MB / 1.037 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.74e-05/0.3886, allocations: 19.44 kB / 1.037 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of SimCode: time 6.61e-07/0.3886, allocations: 0 / 1.037 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of Templates: time 0.008066/0.3967, allocations: 3.592 MB / 1.041 GB, free: 2.34 MB / 0.8106 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