Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002349/0.002349, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002875/0.002875, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 177.1 MB / 203.1 MB, free: 5.559 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.427/3.427, allocations: 429.5 MB / 0.6729 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.859e-06/4.859e-06, allocations: 4 kB / 0.8774 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.839e-05/3.325e-05, allocations: 5.547 kB / 0.8774 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005777/0.005811, allocations: 3.165 MB / 0.8805 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00342/0.00923, allocations: 1.739 MB / 0.8822 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.009384, allocations: 4 kB / 0.8822 GB, free: 1.746 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.01058, allocations: 340 kB / 0.8826 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0005524/0.01113, allocations: 216.4 kB / 0.8828 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004997/0.01163, allocations: 185.5 kB / 0.8829 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000427/0.01206, allocations: 322.9 kB / 0.8832 GB, free: 0.707 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.01244, allocations: 180.9 kB / 0.8834 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003451/0.01278, allocations: 193.9 kB / 0.8836 GB, free: 344 kB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003463/0.01313, allocations: 147.6 kB / 0.8837 GB, free: 196 kB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.05e-05/0.01318, allocations: 20 kB / 0.8838 GB, free: 176 kB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004617/0.01364, allocations: 231.4 kB / 0.884 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.0138, allocations: 107.7 kB / 0.8841 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.01393, allocations: 91.81 kB / 0.8842 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0006962/0.01463, allocations: 446.6 kB / 0.8846 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.01463, allocations: 0 / 0.8846 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.202e-06/0.01463, allocations: 0 / 0.8846 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.01464, allocations: 0 / 0.8846 GB, free: 15.31 MB / 0.8542 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.001114/0.01576, allocations: 0.5892 MB / 0.8852 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.01579, allocations: 12.03 kB / 0.8852 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000835/0.01663, allocations: 140.5 kB / 0.8853 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.01701, allocations: 200.7 kB / 0.8855 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.01704, allocations: 20.86 kB / 0.8855 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.01714, allocations: 24.5 kB / 0.8856 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005773/0.01772, allocations: 331.2 kB / 0.8859 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.01773, allocations: 192 / 0.8859 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.01777, allocations: 12.12 kB / 0.8859 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/0.01787, allocations: 28.48 kB / 0.8859 GB, free: 13.87 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003706/0.01824, allocations: 157.8 kB / 0.8861 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.02023, allocations: 1.248 MB / 0.8873 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.02087, allocations: 142.9 kB / 0.8874 GB, free: 12.26 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.02098, allocations: 51.67 kB / 0.8875 GB, free: 12.21 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/0.0211, allocations: 11.98 kB / 0.8875 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.02114, allocations: 33.39 kB / 0.8875 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.02114, allocations: 4 kB / 0.8875 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of matching and sorting (n=19): time 0.001106/0.02224, allocations: 481.7 kB / 0.888 GB, free: 11.64 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.02229, allocations: 51.41 kB / 0.888 GB, free: 11.58 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.02256, allocations: 260.1 kB / 0.8883 GB, free: 11.31 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.02259, allocations: 33.7 kB / 0.8883 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.02276, allocations: 219.2 kB / 0.8885 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.302e-05/0.02284, allocations: 79.38 kB / 0.8886 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.02297, allocations: 63.34 kB / 0.8886 GB, free: 10.91 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0003027/0.02328, allocations: 0.5079 MB / 0.8891 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.02341, allocations: 55.97 kB / 0.8892 GB, free: 10.33 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.02362, allocations: 133.7 kB / 0.8893 GB, free: 10.17 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000354/0.02397, allocations: 213.7 kB / 0.8895 GB, free: 9.934 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.02398, allocations: 0 / 0.8895 GB, free: 9.934 MB / 0.8542 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007298/0.02471, allocations: 293 kB / 0.8898 GB, free: 9.637 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.02472, allocations: 8 kB / 0.8898 GB, free: 9.629 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.02473, allocations: 0 / 0.8898 GB, free: 9.629 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007599/0.02549, allocations: 119.6 kB / 0.8899 GB, free: 9.508 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.02575, allocations: 55.91 kB / 0.89 GB, free: 9.453 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.02806, allocations: 1.963 MB / 0.8919 GB, free: 7.363 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.02828, allocations: 19.97 kB / 0.8919 GB, free: 7.344 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.02831, allocations: 8 kB / 0.8919 GB, free: 7.336 MB / 0.8542 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.0001794/0.02849, allocations: 164.6 kB / 0.8921 GB, free: 7.164 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-05/0.02856, allocations: 27.84 kB / 0.8921 GB, free: 7.137 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/0.02901, allocations: 195.3 kB / 0.8923 GB, free: 6.941 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.02902, allocations: 4 kB / 0.8923 GB, free: 6.938 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.02902, allocations: 0 / 0.8923 GB, free: 6.938 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.02902, allocations: 4.172 kB / 0.8923 GB, free: 6.934 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009715/0.03, allocations: 0.5689 MB / 0.8929 GB, free: 6.316 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.03, allocations: 0 / 0.8929 GB, free: 6.316 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.03031, allocations: 55.89 kB / 0.8929 GB, free: 6.262 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.03032, allocations: 4 kB / 0.8929 GB, free: 6.258 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.03034, allocations: 12.05 kB / 0.8929 GB, free: 6.246 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.03034, allocations: 4 kB / 0.8929 GB, free: 6.242 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.03034, allocations: 0 / 0.8929 GB, free: 6.242 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005606/0.0309, allocations: 400.5 kB / 0.8933 GB, free: 5.824 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.03102, allocations: 35.88 kB / 0.8933 GB, free: 5.789 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.03105, allocations: 4 kB / 0.8934 GB, free: 5.785 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.03123, allocations: 11.98 kB / 0.8934 GB, free: 5.773 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.959e-05/0.03128, allocations: 19.97 kB / 0.8934 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.0313, allocations: 7.938 kB / 0.8934 GB, free: 5.746 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000176/0.03147, allocations: 180.2 kB / 0.8936 GB, free: 5.57 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9e-08/0.03147, allocations: 4.031 kB / 0.8936 GB, free: 5.566 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003817/0.03186, allocations: 71.94 kB / 0.8936 GB, free: 5.496 MB / 0.8542 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.0001745/0.03203, allocations: 107.2 kB / 0.8937 GB, free: 5.383 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007276/0.03276, allocations: 381.3 kB / 0.8941 GB, free: 4.988 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.03276, allocations: 4.062 kB / 0.8941 GB, free: 4.984 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003793/0.03314, allocations: 81.42 kB / 0.8942 GB, free: 4.902 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.03352, allocations: 37.41 kB / 0.8942 GB, free: 4.867 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.03472, allocations: 0.5487 MB / 0.8948 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.03492, allocations: 161.2 kB / 0.8949 GB, free: 4.105 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001498/0.03507, allocations: 41.92 kB / 0.8949 GB, free: 4.062 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.129e-05/0.03514, allocations: 24.48 kB / 0.895 GB, free: 4.039 MB / 0.8542 GB Notification: Performance of SimCode: time 5.01e-07/0.03514, allocations: 0 / 0.895 GB, free: 4.039 MB / 0.8542 GB Notification: Performance of Templates: time 0.00747/0.04261, allocations: 2.807 MB / 0.8977 GB, free: 1.273 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.602421997929923]