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.001397/0.001397, allocations: 107.5 kB / 15.99 MB, free: 6.359 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.00162/0.00162, allocations: 195.2 kB / 16.91 MB, free: 6.191 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.353/1.353, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.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.176/2.176, allocations: 390.3 MB / 0.665 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 65.48 kB / 0.8127 GB, free: 33.29 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2639, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005055/0.269, allocations: 3.132 MB / 0.9528 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002737/0.2718, allocations: 1.706 MB / 0.9545 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.272, allocations: 7.938 kB / 0.9545 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.2731, allocations: 307 kB / 0.9548 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005718/0.2737, allocations: 195.3 kB / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.2742, allocations: 163.7 kB / 0.9551 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004075/0.2746, allocations: 322.9 kB / 0.9555 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004963/0.2751, allocations: 284.9 kB / 0.9557 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002407/0.2754, allocations: 131.5 kB / 0.9559 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.2758, allocations: 171.4 kB / 0.956 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.287e-05/0.2758, allocations: 20 kB / 0.956 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004321/0.2763, allocations: 235.6 kB / 0.9563 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.2764, allocations: 111.7 kB / 0.9564 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.2766, allocations: 123.4 kB / 0.9565 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.277, allocations: 331.2 kB / 0.9568 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.277, allocations: 4 kB / 0.9568 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.493e-06/0.277, allocations: 0 / 0.9568 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.387e-05/0.2771, allocations: 0 / 0.9568 GB, free: 2.004 MB / 0.7325 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.001068/0.2781, allocations: 0.5381 MB / 0.9573 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2782, allocations: 12.02 kB / 0.9573 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007605/0.2789, allocations: 96.55 kB / 0.9574 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.2793, allocations: 247.9 kB / 0.9577 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.2793, allocations: 20.8 kB / 0.9577 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.992e-05/0.2794, allocations: 20.56 kB / 0.9577 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.28, allocations: 377.2 kB / 0.9581 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.28, allocations: 0 / 0.9581 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.654e-05/0.2801, allocations: 12 kB / 0.9581 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.2802, allocations: 36.34 kB / 0.9581 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004872/0.2807, allocations: 305.5 kB / 0.9584 GB, free: 256 kB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.2826, allocations: 1.533 MB / 0.9599 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.283, allocations: 234.3 kB / 0.9601 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.2832, allocations: 120.8 kB / 0.9602 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/0.2833, allocations: 85.09 kB / 0.9603 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.2834, allocations: 38.56 kB / 0.9604 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.2834, allocations: 0 / 0.9604 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.001293/0.2847, allocations: 0.7939 MB / 0.9611 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.2847, allocations: 55.41 kB / 0.9612 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.2849, allocations: 191.2 kB / 0.9614 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.285, allocations: 29.7 kB / 0.9614 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.882e-05/0.2851, allocations: 163.8 kB / 0.9616 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.572e-05/0.2852, allocations: 63.02 kB / 0.9616 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.2853, allocations: 57.69 kB / 0.9617 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2854, allocations: 330.8 kB / 0.962 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.2856, allocations: 119.9 kB / 0.9621 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.2858, allocations: 173.8 kB / 0.9623 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003985/0.2862, allocations: 296.9 kB / 0.9626 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.2862, allocations: 0 / 0.9626 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000778/0.287, allocations: 417.9 kB / 0.9629 GB, free: 11.26 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.287, allocations: 15.88 kB / 0.963 GB, free: 11.24 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.287, allocations: 0 / 0.963 GB, free: 11.24 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004238/0.2875, allocations: 92.77 kB / 0.9631 GB, free: 11.15 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/0.2877, allocations: 64.02 kB / 0.9631 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/0.2897, allocations: 1.871 MB / 0.9649 GB, free: 9.078 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.2899, allocations: 19.95 kB / 0.965 GB, free: 9.059 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.29, allocations: 8 kB / 0.965 GB, free: 9.051 MB / 0.7481 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.0001664/0.2902, allocations: 161.8 kB / 0.9651 GB, free: 8.883 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.057e-05/0.2902, allocations: 15.81 kB / 0.9651 GB, free: 8.867 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004921/0.2907, allocations: 303.2 kB / 0.9654 GB, free: 8.566 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.2907, allocations: 7.984 kB / 0.9654 GB, free: 8.559 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.2907, allocations: 0 / 0.9654 GB, free: 8.559 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.2908, allocations: 3.938 kB / 0.9654 GB, free: 8.555 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009163/0.2917, allocations: 0.7014 MB / 0.9661 GB, free: 7.793 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2917, allocations: 0 / 0.9661 GB, free: 7.793 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003133/0.292, allocations: 59.89 kB / 0.9662 GB, free: 7.734 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.292, allocations: 0 / 0.9662 GB, free: 7.734 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.651e-05/0.2921, allocations: 11.94 kB / 0.9662 GB, free: 7.723 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.2921, allocations: 3.984 kB / 0.9662 GB, free: 7.719 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2921, allocations: 4 kB / 0.9662 GB, free: 7.715 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006103/0.2927, allocations: 0.5103 MB / 0.9667 GB, free: 7.184 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.2928, allocations: 116.8 kB / 0.9668 GB, free: 7.051 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.777e-05/0.2929, allocations: 8 kB / 0.9668 GB, free: 7.043 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.2931, allocations: 11.98 kB / 0.9668 GB, free: 7.031 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.2931, allocations: 15.92 kB / 0.9668 GB, free: 7.016 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.2931, allocations: 4 kB / 0.9668 GB, free: 7.012 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001308/0.2933, allocations: 152.1 kB / 0.967 GB, free: 6.859 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2933, allocations: 0 / 0.967 GB, free: 6.859 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003684/0.2936, allocations: 60 kB / 0.967 GB, free: 6.801 MB / 0.7481 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.0001562/0.2938, allocations: 111.2 kB / 0.9672 GB, free: 6.684 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007562/0.2946, allocations: 455.3 kB / 0.9676 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2946, allocations: 0 / 0.9676 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.2948, allocations: 119.9 kB / 0.9677 GB, free: 6.109 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.2952, allocations: 44.22 kB / 0.9677 GB, free: 6.07 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.2965, allocations: 0.7579 MB / 0.9685 GB, free: 5.27 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.2969, allocations: 0.7753 MB / 0.9692 GB, free: 4.469 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.585e-05/0.297, allocations: 19.44 kB / 0.9693 GB, free: 4.449 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/0.297, allocations: 0 / 0.9693 GB, free: 4.449 MB / 0.7481 GB Notification: Performance of Templates: time 0.006312/0.3033, allocations: 3.601 MB / 0.9728 GB, free: 0.8555 MB / 0.7481 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