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.001374/0.001374, allocations: 104.5 kB / 16.45 MB, free: 6.449 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.001429/0.001429, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.463/1.463, allocations: 230.6 MB / 252.8 MB, free: 9.125 MB / 206.1 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.308/3.308, allocations: 0.505 GB / 0.8066 GB, free: 23.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",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.002152/0.002152, allocations: 71.5 kB / 1.172 GB, free: 17.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3297, allocations: 180.2 MB / 1.348 GB, free: 9.988 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005963/0.3357, allocations: 3.133 MB / 1.351 GB, free: 6.844 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00309/0.3388, allocations: 1.784 MB / 1.353 GB, free: 5.051 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.3389, allocations: 4 kB / 1.353 GB, free: 5.047 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.34, allocations: 345.7 kB / 1.353 GB, free: 4.711 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0004955/0.3405, allocations: 211.1 kB / 1.353 GB, free: 4.504 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004678/0.341, allocations: 187.5 kB / 1.353 GB, free: 4.32 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004/0.3414, allocations: 315 kB / 1.354 GB, free: 4.012 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003638/0.3417, allocations: 189 kB / 1.354 GB, free: 3.824 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002607/0.342, allocations: 147.5 kB / 1.354 GB, free: 3.68 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.3423, allocations: 167.4 kB / 1.354 GB, free: 3.516 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.3423, allocations: 24 kB / 1.354 GB, free: 3.492 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004245/0.3428, allocations: 247.5 kB / 1.354 GB, free: 3.25 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.3429, allocations: 107.7 kB / 1.354 GB, free: 3.145 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.343, allocations: 115.5 kB / 1.355 GB, free: 3.031 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006099/0.3436, allocations: 434.4 kB / 1.355 GB, free: 2.605 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3437, allocations: 0 / 1.355 GB, free: 2.605 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3437, allocations: 0 / 1.355 GB, free: 2.605 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.3437, allocations: 0 / 1.355 GB, free: 2.605 MB / 1.045 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.001061/0.3447, allocations: 0.5532 MB / 1.355 GB, free: 2.004 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3448, allocations: 15.98 kB / 1.355 GB, free: 1.988 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.127e-05/0.3448, allocations: 58.72 kB / 1.356 GB, free: 1.922 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000778/0.3456, allocations: 96.64 kB / 1.356 GB, free: 1.828 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.346, allocations: 255.9 kB / 1.356 GB, free: 1.539 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.346, allocations: 24.81 kB / 1.356 GB, free: 1.516 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3461, allocations: 24.55 kB / 1.356 GB, free: 1.492 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/0.3467, allocations: 380.8 kB / 1.356 GB, free: 1.09 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3468, allocations: 4 kB / 1.356 GB, free: 1.086 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.3468, allocations: 12 kB / 1.356 GB, free: 1.074 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001016/0.3469, allocations: 24.42 kB / 1.356 GB, free: 1.051 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005207/0.3474, allocations: 313.5 kB / 1.357 GB, free: 0.7461 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.3494, allocations: 1.541 MB / 1.358 GB, free: 15.05 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004753/0.3499, allocations: 214.4 kB / 1.358 GB, free: 14.83 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.35, allocations: 100.8 kB / 1.358 GB, free: 14.73 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.3502, allocations: 89.09 kB / 1.359 GB, free: 14.62 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.3502, allocations: 30.56 kB / 1.359 GB, free: 14.59 MB / 1.061 GB Notification: Performance of pre-optimization done (n=18): time 4.778e-06/0.3502, allocations: 4 kB / 1.359 GB, free: 14.58 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.001454/0.3517, allocations: 0.7965 MB / 1.359 GB, free: 13.74 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.3517, allocations: 55.34 kB / 1.359 GB, free: 13.67 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.3519, allocations: 194.6 kB / 1.36 GB, free: 13.47 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.352, allocations: 29.7 kB / 1.36 GB, free: 13.44 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3521, allocations: 164.2 kB / 1.36 GB, free: 13.27 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.402e-05/0.3522, allocations: 79.31 kB / 1.36 GB, free: 13.2 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.3523, allocations: 53.7 kB / 1.36 GB, free: 13.14 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3524, allocations: 334.8 kB / 1.36 GB, free: 12.8 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.3526, allocations: 111.9 kB / 1.36 GB, free: 12.69 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002393/0.3528, allocations: 165.9 kB / 1.36 GB, free: 12.51 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004316/0.3533, allocations: 289.8 kB / 1.361 GB, free: 12.2 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3533, allocations: 0 / 1.361 GB, free: 12.2 MB / 1.061 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008531/0.3541, allocations: 421.9 kB / 1.361 GB, free: 11.78 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3541, allocations: 8 kB / 1.361 GB, free: 11.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3541, allocations: 3.938 kB / 1.361 GB, free: 11.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004392/0.3546, allocations: 104.9 kB / 1.361 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.3549, allocations: 51.91 kB / 1.361 GB, free: 11.61 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002373/0.3572, allocations: 1.875 MB / 1.363 GB, free: 9.594 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.3575, allocations: 19.95 kB / 1.363 GB, free: 9.574 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.3575, allocations: 15.98 kB / 1.363 GB, free: 9.559 MB / 1.061 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.0002391/0.3578, allocations: 153.8 kB / 1.363 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.3578, allocations: 15.91 kB / 1.363 GB, free: 9.383 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000582/0.3584, allocations: 295.4 kB / 1.364 GB, free: 9.086 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.3584, allocations: 4 kB / 1.364 GB, free: 9.082 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3584, allocations: 0 / 1.364 GB, free: 9.082 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.3584, allocations: 11.91 kB / 1.364 GB, free: 9.07 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.3595, allocations: 0.703 MB / 1.364 GB, free: 8.305 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3595, allocations: 0 / 1.364 GB, free: 8.305 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.3598, allocations: 59.89 kB / 1.364 GB, free: 8.246 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3598, allocations: 3.938 kB / 1.364 GB, free: 8.242 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.3598, allocations: 8 kB / 1.364 GB, free: 8.234 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3598, allocations: 3.938 kB / 1.364 GB, free: 8.23 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.3598, allocations: 4 kB / 1.364 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007236/0.3605, allocations: 0.52 MB / 1.365 GB, free: 7.688 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.3607, allocations: 116.9 kB / 1.365 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.3607, allocations: 4 kB / 1.365 GB, free: 7.551 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.3609, allocations: 15.97 kB / 1.365 GB, free: 7.535 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.3609, allocations: 11.98 kB / 1.365 GB, free: 7.523 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.361, allocations: 8 kB / 1.365 GB, free: 7.516 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001557/0.3611, allocations: 144.1 kB / 1.365 GB, free: 7.371 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3611, allocations: 4 kB / 1.365 GB, free: 7.367 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004039/0.3615, allocations: 64 kB / 1.365 GB, free: 7.305 MB / 1.061 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.001122/0.3626, allocations: 1.059 MB / 1.366 GB, free: 6.211 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008049/0.3635, allocations: 410.2 kB / 1.367 GB, free: 5.797 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3635, allocations: 0 / 1.367 GB, free: 5.797 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.3636, allocations: 111.9 kB / 1.367 GB, free: 5.688 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.364, allocations: 40.47 kB / 1.367 GB, free: 5.648 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.3684, allocations: 2.902 MB / 1.37 GB, free: 2.617 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.3688, allocations: 0.7714 MB / 1.37 GB, free: 1.82 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001729/0.369, allocations: 53.92 kB / 1.37 GB, free: 1.77 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.3691, allocations: 67.41 kB / 1.371 GB, free: 1.703 MB / 1.061 GB Notification: Performance of SimCode: time 9.72e-07/0.3691, allocations: 0 / 1.371 GB, free: 1.703 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03587/0.405, allocations: 5.126 MB / 1.376 GB, free: 12.76 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.68, allocations: 6.875 kB / 1.376 GB, free: 12.76 MB / 1.076 GB " [Timeout remaining time 289] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/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] "Error: Could not read variable sen.I in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable sen.I from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! Error: Could not read variable sen.V in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable sen.V from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! Error: Could not read variable loa.S[1] in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable loa.S[1] from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! Error: Could not read variable loa.S[2] in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable loa.S[2] from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.541724495124072]