Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008472/0.0008472, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0007528/0.0007528, allocations: 165.9 kB / 22.46 MB, free: 2.105 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 0.8241/0.8241, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.63/1.63, allocations: 377.8 MB / 0.6221 GB, free: 8.68 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 0.9809 GB, free: 2.637 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.267e-05/1.449e-05, allocations: 6.281 kB / 0.9809 GB, free: 2.629 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003088/0.003102, allocations: 3.071 MB / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.001647/0.004749, allocations: 1.675 MB / 0.9856 GB, free: 13.86 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.92e-05/0.004838, allocations: 7.938 kB / 0.9856 GB, free: 13.86 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006012/0.005439, allocations: 338.7 kB / 0.9859 GB, free: 13.52 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.005713, allocations: 214.7 kB / 0.9861 GB, free: 13.31 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.005977, allocations: 183.4 kB / 0.9863 GB, free: 13.13 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.006221, allocations: 330.8 kB / 0.9866 GB, free: 12.81 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.006468, allocations: 173 kB / 0.9868 GB, free: 12.64 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.006663, allocations: 195.5 kB / 0.987 GB, free: 12.45 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.006857, allocations: 147.6 kB / 0.9871 GB, free: 12.3 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.006882, allocations: 20 kB / 0.9871 GB, free: 12.28 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.00709, allocations: 231.3 kB / 0.9873 GB, free: 12.05 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.762e-05/0.007168, allocations: 107.7 kB / 0.9874 GB, free: 11.95 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.332e-05/0.007231, allocations: 83.81 kB / 0.9875 GB, free: 11.87 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003415/0.007572, allocations: 442.7 kB / 0.9879 GB, free: 11.43 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.007574, allocations: 0 / 0.9879 GB, free: 11.43 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.42e-07/0.007575, allocations: 0 / 0.9879 GB, free: 11.43 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.007579, allocations: 0 / 0.9879 GB, free: 11.43 MB / 0.948 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.0006246/0.008204, allocations: 493.3 kB / 0.9884 GB, free: 10.92 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.008241, allocations: 15.97 kB / 0.9884 GB, free: 10.9 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.633e-05/0.008287, allocations: 58.72 kB / 0.9885 GB, free: 10.84 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000387/0.008674, allocations: 92.69 kB / 0.9886 GB, free: 10.75 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.008893, allocations: 199.3 kB / 0.9888 GB, free: 10.53 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.008911, allocations: 12.88 kB / 0.9888 GB, free: 10.52 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.978e-05/0.008981, allocations: 36.53 kB / 0.9888 GB, free: 10.48 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.009352, allocations: 424.9 kB / 0.9892 GB, free: 10.03 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.009363, allocations: 192 / 0.9892 GB, free: 10.03 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.009387, allocations: 19.86 kB / 0.9892 GB, free: 10.01 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.009501, allocations: 32.47 kB / 0.9893 GB, free: 9.98 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.009803, allocations: 301.8 kB / 0.9896 GB, free: 9.688 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000967/0.01077, allocations: 1.081 MB / 0.9906 GB, free: 8.547 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/0.01103, allocations: 206.4 kB / 0.9908 GB, free: 8.336 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.552e-05/0.01113, allocations: 105.1 kB / 0.9909 GB, free: 8.23 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.421e-05/0.0112, allocations: 11.92 kB / 0.9909 GB, free: 8.219 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.01122, allocations: 46.41 kB / 0.991 GB, free: 8.164 MB / 0.948 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.01122, allocations: 0 / 0.991 GB, free: 8.164 MB / 0.948 GB Notification: Performance of matching and sorting (n=19): time 0.0008145/0.01204, allocations: 0.7214 MB / 0.9917 GB, free: 7.41 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.01206, allocations: 51.41 kB / 0.9917 GB, free: 7.348 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.01219, allocations: 199.2 kB / 0.9919 GB, free: 7.145 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.0122, allocations: 29.7 kB / 0.9919 GB, free: 7.109 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.01226, allocations: 164.2 kB / 0.9921 GB, free: 6.945 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.0123, allocations: 79.36 kB / 0.9922 GB, free: 6.867 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.044e-05/0.01236, allocations: 53.66 kB / 0.9922 GB, free: 6.809 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.061e-05/0.01243, allocations: 330.8 kB / 0.9925 GB, free: 6.477 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.01254, allocations: 107.9 kB / 0.9926 GB, free: 6.371 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.01267, allocations: 165.9 kB / 0.9928 GB, free: 6.188 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.01293, allocations: 303.7 kB / 0.9931 GB, free: 5.871 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01293, allocations: 3.938 kB / 0.9931 GB, free: 5.867 MB / 0.948 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004582/0.01339, allocations: 406.7 kB / 0.9935 GB, free: 5.461 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.0134, allocations: 8 kB / 0.9935 GB, free: 5.453 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.01341, allocations: 3.938 kB / 0.9935 GB, free: 5.449 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/0.01365, allocations: 104.9 kB / 0.9936 GB, free: 5.344 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.01378, allocations: 51.91 kB / 0.9936 GB, free: 5.293 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.01495, allocations: 1.76 MB / 0.9954 GB, free: 3.414 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.01505, allocations: 16.02 kB / 0.9954 GB, free: 3.398 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.01507, allocations: 8 kB / 0.9954 GB, free: 3.391 MB / 0.948 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 9.885e-05/0.01517, allocations: 161.7 kB / 0.9955 GB, free: 3.223 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.01519, allocations: 15.91 kB / 0.9955 GB, free: 3.207 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000292/0.01548, allocations: 301.9 kB / 0.9958 GB, free: 2.91 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.01549, allocations: 4 kB / 0.9958 GB, free: 2.906 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.01549, allocations: 0 / 0.9958 GB, free: 2.906 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.01549, allocations: 3.984 kB / 0.9958 GB, free: 2.902 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006006/0.01609, allocations: 0.6493 MB / 0.9965 GB, free: 2.199 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.0161, allocations: 4 kB / 0.9965 GB, free: 2.195 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.01625, allocations: 55.89 kB / 0.9965 GB, free: 2.141 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.01625, allocations: 8.062 kB / 0.9965 GB, free: 2.133 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.01626, allocations: 4 kB / 0.9965 GB, free: 2.129 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01626, allocations: 4 kB / 0.9965 GB, free: 2.125 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.01627, allocations: 7.875 kB / 0.9966 GB, free: 2.117 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.01665, allocations: 0.5124 MB / 0.9971 GB, free: 1.582 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.01671, allocations: 43.86 kB / 0.9971 GB, free: 1.539 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.01673, allocations: 8 kB / 0.9971 GB, free: 1.531 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.141e-05/0.01682, allocations: 11.92 kB / 0.9971 GB, free: 1.52 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.01684, allocations: 24.02 kB / 0.9971 GB, free: 1.496 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.01685, allocations: 8 kB / 0.9971 GB, free: 1.488 MB / 0.948 GB Notification: Performance of sorting global known variables: time 8.166e-05/0.01693, allocations: 149.1 kB / 0.9973 GB, free: 1.34 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01693, allocations: 4.062 kB / 0.9973 GB, free: 1.336 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002267/0.01716, allocations: 64 kB / 0.9974 GB, free: 1.273 MB / 0.948 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.0005736/0.01773, allocations: 1.058 MB / 0.9984 GB, free: 188 kB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0004531/0.01819, allocations: 411.7 kB / 0.9988 GB, free: 15.77 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01819, allocations: 0 / 0.9988 GB, free: 15.77 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.888e-05/0.01829, allocations: 114.4 kB / 0.9989 GB, free: 15.66 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.01854, allocations: 43.27 kB / 0.9989 GB, free: 15.62 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.02081, allocations: 2.839 MB / 1.002 GB, free: 12.64 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.02091, allocations: 169 kB / 1.002 GB, free: 12.46 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.02101, allocations: 57.92 kB / 1.002 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.093e-05/0.02109, allocations: 68.47 kB / 1.002 GB, free: 12.33 MB / 0.9636 GB Notification: Performance of SimCode: time 4.91e-07/0.02109, allocations: 0 / 1.002 GB, free: 12.33 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.03874, allocations: 5.854 MB / 1.008 GB, free: 6.672 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.028/7.067, allocations: 4.062 kB / 1.008 GB, free: 6.668 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.751016698777676]