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.001362/0.001362, allocations: 108 kB / 15.6 MB, free: 132 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.001537/0.001537, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.531/1.531, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.955/2.955, allocations: 437 MB / 0.7104 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 63.91 kB / 0.8692 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8656/0.8676, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006762/0.8744, allocations: 3.078 MB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004145/0.8786, allocations: 1.726 MB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003506/0.879, allocations: 4 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.8803, allocations: 330.7 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007085/0.881, allocations: 207.1 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006517/0.8817, allocations: 187.5 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004669/0.8821, allocations: 319 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005101/0.8827, allocations: 238.7 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002345/0.8829, allocations: 139.5 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003888/0.8833, allocations: 159.5 kB / 1.024 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.8834, allocations: 20 kB / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005411/0.8839, allocations: 243.5 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.8841, allocations: 107.8 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.8842, allocations: 119.5 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006599/0.8849, allocations: 422.7 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/0.8849, allocations: 3.984 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.564e-06/0.8849, allocations: 4 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.367e-05/0.885, allocations: 0 / 1.024 GB, free: 11.22 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.001201/0.8862, allocations: 0.542 MB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.8862, allocations: 8.031 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007759/0.887, allocations: 92.55 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.8874, allocations: 251.8 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.8874, allocations: 20.8 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.8875, allocations: 24.56 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.8882, allocations: 385 kB / 1.026 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.8882, allocations: 0 / 1.026 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.618e-05/0.8882, allocations: 8 kB / 1.026 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/0.8883, allocations: 28.42 kB / 1.026 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005307/0.8889, allocations: 305.5 kB / 1.026 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.891, allocations: 1.537 MB / 1.027 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.8915, allocations: 226.4 kB / 1.028 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.8917, allocations: 120.8 kB / 1.028 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/0.8918, allocations: 89.09 kB / 1.028 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.8919, allocations: 30.56 kB / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.8919, allocations: 0 / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001456/0.8934, allocations: 0.7992 MB / 1.029 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.8934, allocations: 51.41 kB / 1.029 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.8937, allocations: 198.6 kB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.8937, allocations: 29.7 kB / 1.029 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.8938, allocations: 163.8 kB / 1.029 GB, free: 5.969 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.427e-05/0.8939, allocations: 66.95 kB / 1.029 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.894, allocations: 57.69 kB / 1.029 GB, free: 5.84 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.8942, allocations: 330.8 kB / 1.03 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.8944, allocations: 115.9 kB / 1.03 GB, free: 5.395 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.8947, allocations: 163.5 kB / 1.03 GB, free: 5.215 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004366/0.8951, allocations: 299.6 kB / 1.03 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.8951, allocations: 0 / 1.03 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008073/0.8959, allocations: 415.8 kB / 1.031 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.896, allocations: 11.94 kB / 1.031 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.896, allocations: 0 / 1.031 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000442/0.8964, allocations: 104.9 kB / 1.031 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.8967, allocations: 47.97 kB / 1.031 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.899, allocations: 1.891 MB / 1.033 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.8992, allocations: 19.95 kB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.8993, allocations: 8 kB / 1.033 GB, free: 2.266 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.0002072/0.8995, allocations: 153.8 kB / 1.033 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.307e-05/0.8995, allocations: 15.81 kB / 1.033 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005388/0.9001, allocations: 313.1 kB / 1.033 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.9001, allocations: 7.938 kB / 1.033 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-06/0.9001, allocations: 0 / 1.033 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.9001, allocations: 7.922 kB / 1.033 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.9011, allocations: 0.6913 MB / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.9011, allocations: 4 kB / 1.034 GB, free: 1.012 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003173/0.9015, allocations: 63.95 kB / 1.034 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.9015, allocations: 4 kB / 1.034 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.9015, allocations: 3.938 kB / 1.034 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.9015, allocations: 7.938 kB / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.9015, allocations: 0 / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000708/0.9022, allocations: 0.5163 MB / 1.034 GB, free: 404 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.9024, allocations: 116.9 kB / 1.034 GB, free: 268 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.9024, allocations: 8 kB / 1.034 GB, free: 260 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.9026, allocations: 15.98 kB / 1.034 GB, free: 244 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.9026, allocations: 7.984 kB / 1.034 GB, free: 236 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.9027, allocations: 7.984 kB / 1.034 GB, free: 228 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001517/0.9028, allocations: 148 kB / 1.035 GB, free: 76 kB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9028, allocations: 0 / 1.035 GB, free: 76 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003965/0.9032, allocations: 68 kB / 1.035 GB, free: 8 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.000207/0.9034, allocations: 117.3 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008622/0.9043, allocations: 440.1 kB / 1.035 GB, free: 15.45 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.9043, allocations: 0 / 1.035 GB, free: 15.45 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.9045, allocations: 121.8 kB / 1.035 GB, free: 15.33 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.9049, allocations: 44.84 kB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.9063, allocations: 0.6322 MB / 1.036 GB, free: 14.62 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.9067, allocations: 0.7752 MB / 1.037 GB, free: 13.82 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001857/0.9069, allocations: 61.91 kB / 1.037 GB, free: 13.76 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.5e-05/0.907, allocations: 19.44 kB / 1.037 GB, free: 13.74 MB / 0.795 GB Notification: Performance of SimCode: time 6.51e-07/0.907, allocations: 4 kB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of Templates: time 0.007387/0.9144, allocations: 2.779 MB / 1.04 GB, free: 10.96 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=400 -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/jenkins/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