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.001503/0.001503, allocations: 97.92 kB / 19.73 MB, free: 2.133 MB / 14.72 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.001667/0.001667, allocations: 219.8 kB / 23.03 MB, free: 4.945 MB / 14.72 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.456/1.456, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.087/3.087, allocations: 0.49 GB / 0.7959 GB, free: 35.3 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 70.41 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3153, allocations: 176.1 MB / 1.327 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005543/0.3208, allocations: 3.093 MB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003047/0.3239, allocations: 1.695 MB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.324, allocations: 7.938 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.3251, allocations: 338.7 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005607/0.3257, allocations: 219 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005233/0.3262, allocations: 175.6 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004672/0.3267, allocations: 315 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.3271, allocations: 185.4 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003033/0.3274, allocations: 143.6 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003609/0.3277, allocations: 167.4 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.909e-05/0.3278, allocations: 20 kB / 1.333 GB, free: 11.19 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004189/0.3282, allocations: 223.5 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.3284, allocations: 107.7 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.3285, allocations: 99.53 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006098/0.3291, allocations: 434.5 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3291, allocations: 0 / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3291, allocations: 4 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.267e-05/0.3291, allocations: 0 / 1.334 GB, free: 10.34 MB / 1.029 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.0009988/0.3301, allocations: 481.4 kB / 1.334 GB, free: 9.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3302, allocations: 15.97 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.71e-05/0.3302, allocations: 4.625 kB / 1.334 GB, free: 9.82 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/0.3303, allocations: 58.72 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007806/0.331, allocations: 92.69 kB / 1.334 GB, free: 9.664 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.3314, allocations: 207.8 kB / 1.334 GB, free: 9.438 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.3314, allocations: 16.8 kB / 1.334 GB, free: 9.422 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.3315, allocations: 36.25 kB / 1.334 GB, free: 9.387 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006627/0.3322, allocations: 420 kB / 1.335 GB, free: 8.941 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.3322, allocations: 0 / 1.335 GB, free: 8.941 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.539e-05/0.3323, allocations: 11.98 kB / 1.335 GB, free: 8.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/0.3324, allocations: 32.41 kB / 1.335 GB, free: 8.898 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005191/0.3329, allocations: 305.5 kB / 1.335 GB, free: 8.602 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.3346, allocations: 1.085 MB / 1.336 GB, free: 7.453 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004633/0.3351, allocations: 214.4 kB / 1.336 GB, free: 7.234 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.3353, allocations: 100.8 kB / 1.337 GB, free: 7.133 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.3354, allocations: 11.98 kB / 1.337 GB, free: 7.121 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.3354, allocations: 34.56 kB / 1.337 GB, free: 7.078 MB / 1.029 GB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.3354, allocations: 4 kB / 1.337 GB, free: 7.074 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.001364/0.3368, allocations: 0.7209 MB / 1.337 GB, free: 6.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.3368, allocations: 55.41 kB / 1.337 GB, free: 6.254 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.337, allocations: 194.7 kB / 1.338 GB, free: 6.055 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.3371, allocations: 29.7 kB / 1.338 GB, free: 6.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.3372, allocations: 176 kB / 1.338 GB, free: 5.844 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.039e-05/0.3372, allocations: 63.44 kB / 1.338 GB, free: 5.781 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.3373, allocations: 61.64 kB / 1.338 GB, free: 5.715 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3375, allocations: 334.7 kB / 1.338 GB, free: 5.379 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.3377, allocations: 115.9 kB / 1.338 GB, free: 5.266 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.3379, allocations: 173.9 kB / 1.338 GB, free: 5.074 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004229/0.3383, allocations: 290.5 kB / 1.339 GB, free: 4.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3383, allocations: 0 / 1.339 GB, free: 4.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008149/0.3391, allocations: 424 kB / 1.339 GB, free: 4.348 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3392, allocations: 6.031 kB / 1.339 GB, free: 4.344 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3392, allocations: 0 / 1.339 GB, free: 4.344 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004388/0.3396, allocations: 96.77 kB / 1.339 GB, free: 4.246 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.3399, allocations: 51.95 kB / 1.339 GB, free: 4.195 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.342, allocations: 1.764 MB / 1.341 GB, free: 2.316 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.3423, allocations: 15.97 kB / 1.341 GB, free: 2.301 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.3423, allocations: 8.188 kB / 1.341 GB, free: 2.293 MB / 1.029 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.0001919/0.3425, allocations: 160.4 kB / 1.341 GB, free: 2.129 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.421e-05/0.3425, allocations: 19.86 kB / 1.341 GB, free: 2.109 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005373/0.3431, allocations: 308.8 kB / 1.342 GB, free: 1.801 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3431, allocations: 0 / 1.342 GB, free: 1.801 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3431, allocations: 3.938 kB / 1.342 GB, free: 1.797 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3431, allocations: 0 / 1.342 GB, free: 1.797 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.3441, allocations: 0.6474 MB / 1.342 GB, free: 1.094 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3441, allocations: 4.062 kB / 1.342 GB, free: 1.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003335/0.3444, allocations: 59.89 kB / 1.342 GB, free: 1.031 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.3444, allocations: 3.938 kB / 1.342 GB, free: 1.027 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.3445, allocations: 8 kB / 1.342 GB, free: 1.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3445, allocations: 0 / 1.342 GB, free: 1.02 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3445, allocations: 3.938 kB / 1.342 GB, free: 1.016 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006911/0.3452, allocations: 0.518 MB / 1.343 GB, free: 488 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.348e-05/0.3453, allocations: 39.81 kB / 1.343 GB, free: 448 kB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.3453, allocations: 7.984 kB / 1.343 GB, free: 440 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.3455, allocations: 15.98 kB / 1.343 GB, free: 424 kB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.3455, allocations: 16.03 kB / 1.343 GB, free: 408 kB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3455, allocations: 8 kB / 1.343 GB, free: 400 kB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001474/0.3457, allocations: 148 kB / 1.343 GB, free: 248 kB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3457, allocations: 0 / 1.343 GB, free: 248 kB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003692/0.3461, allocations: 64 kB / 1.343 GB, free: 184 kB / 1.029 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.001051/0.3471, allocations: 1.061 MB / 1.344 GB, free: 15.08 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0008207/0.3479, allocations: 410.6 kB / 1.344 GB, free: 14.67 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3479, allocations: 0 / 1.344 GB, free: 14.67 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.3481, allocations: 113.6 kB / 1.345 GB, free: 14.56 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.3485, allocations: 38.59 kB / 1.345 GB, free: 14.52 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004195/0.3527, allocations: 2.891 MB / 1.347 GB, free: 11.5 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.3529, allocations: 165.2 kB / 1.348 GB, free: 11.32 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.000176/0.3531, allocations: 61.89 kB / 1.348 GB, free: 11.26 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.3532, allocations: 67.41 kB / 1.348 GB, free: 11.2 MB / 1.045 GB Notification: Performance of SimCode: time 5.71e-07/0.3532, allocations: 0 / 1.348 GB, free: 11.2 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.3837, allocations: 5.444 MB / 1.353 GB, free: 5.938 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.11, allocations: 12.12 kB / 1.353 GB, free: 5.934 MB / 1.045 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.68557527300436]