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.001769/0.001769, allocations: 111 kB / 16.46 MB, free: 6.453 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.002151/0.002151, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.498/1.498, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.257/3.257, allocations: 0.49 GB / 0.7916 GB, free: 33.26 MB / 0.6231 GB " [Timeout remaining time 176] 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="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: 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.002203/0.002203, allocations: 67.17 kB / 1.149 GB, free: 26.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3473, allocations: 176.1 MB / 1.321 GB, free: 3.328 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005544/0.3528, allocations: 3.137 MB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003466/0.3563, allocations: 1.78 MB / 1.326 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002731/0.3565, allocations: 7.938 kB / 1.326 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.3578, allocations: 338.7 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0007609/0.3586, allocations: 215.1 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006864/0.3593, allocations: 187.4 kB / 1.326 GB, free: 13.65 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005622/0.3598, allocations: 319 kB / 1.327 GB, free: 13.34 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.3602, allocations: 185 kB / 1.327 GB, free: 13.15 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.3606, allocations: 143.6 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004164/0.361, allocations: 175.4 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.581e-05/0.3611, allocations: 24 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005799/0.3617, allocations: 247.5 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.3618, allocations: 99.72 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.362, allocations: 123.4 kB / 1.328 GB, free: 12.36 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007126/0.3627, allocations: 426.5 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3627, allocations: 0 / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3627, allocations: 0 / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.927e-06/0.3627, allocations: 0 / 1.328 GB, free: 11.94 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.001121/0.3638, allocations: 0.5493 MB / 1.329 GB, free: 11.34 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.3639, allocations: 15.98 kB / 1.329 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.598e-05/0.364, allocations: 66.7 kB / 1.329 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008291/0.3648, allocations: 96.64 kB / 1.329 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.3652, allocations: 257.8 kB / 1.329 GB, free: 10.87 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.3652, allocations: 20.8 kB / 1.329 GB, free: 10.85 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.3653, allocations: 28.48 kB / 1.329 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006353/0.366, allocations: 376.9 kB / 1.329 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.366, allocations: 0 / 1.329 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.366, allocations: 8 kB / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.3661, allocations: 32.41 kB / 1.329 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005382/0.3667, allocations: 301.5 kB / 1.33 GB, free: 10.09 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.3689, allocations: 1.537 MB / 1.331 GB, free: 8.395 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.3694, allocations: 222.4 kB / 1.331 GB, free: 8.168 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.3696, allocations: 100.8 kB / 1.331 GB, free: 8.066 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001863/0.3698, allocations: 85.11 kB / 1.332 GB, free: 7.965 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.3698, allocations: 34.56 kB / 1.332 GB, free: 7.922 MB / 1.029 GB Notification: Performance of pre-optimization done (n=18): time 1.873e-06/0.3698, allocations: 0 / 1.332 GB, free: 7.922 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.001545/0.3714, allocations: 0.7926 MB / 1.332 GB, free: 7.078 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.3714, allocations: 59.34 kB / 1.332 GB, free: 7.008 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.3717, allocations: 203.9 kB / 1.333 GB, free: 6.801 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.3717, allocations: 25.7 kB / 1.333 GB, free: 6.77 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.3718, allocations: 160.2 kB / 1.333 GB, free: 6.609 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.045e-05/0.3719, allocations: 75.31 kB / 1.333 GB, free: 6.535 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.372, allocations: 61.64 kB / 1.333 GB, free: 6.469 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3722, allocations: 330.8 kB / 1.333 GB, free: 6.137 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.3724, allocations: 115.9 kB / 1.333 GB, free: 6.023 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.3726, allocations: 170.2 kB / 1.334 GB, free: 5.836 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.3731, allocations: 287.6 kB / 1.334 GB, free: 5.535 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3731, allocations: 7.938 kB / 1.334 GB, free: 5.527 MB / 1.029 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008856/0.374, allocations: 411.9 kB / 1.334 GB, free: 5.117 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.374, allocations: 12.19 kB / 1.334 GB, free: 5.105 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.374, allocations: 0 / 1.334 GB, free: 5.105 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004732/0.3745, allocations: 100.8 kB / 1.334 GB, free: 5.004 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.3748, allocations: 55.91 kB / 1.334 GB, free: 4.949 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002363/0.3771, allocations: 1.875 MB / 1.336 GB, free: 2.934 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/0.3774, allocations: 19.95 kB / 1.336 GB, free: 2.914 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.3775, allocations: 11.98 kB / 1.336 GB, free: 2.902 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.0002176/0.3777, allocations: 149.8 kB / 1.336 GB, free: 2.746 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.3777, allocations: 19.86 kB / 1.336 GB, free: 2.727 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005908/0.3783, allocations: 304.9 kB / 1.337 GB, free: 2.426 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3783, allocations: 7.984 kB / 1.337 GB, free: 2.418 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.3783, allocations: 0 / 1.337 GB, free: 2.418 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.3783, allocations: 7.922 kB / 1.337 GB, free: 2.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.3794, allocations: 0.6914 MB / 1.337 GB, free: 1.656 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.3794, allocations: 8 kB / 1.337 GB, free: 1.648 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003823/0.3798, allocations: 63.95 kB / 1.337 GB, free: 1.586 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/0.3798, allocations: 7.938 kB / 1.337 GB, free: 1.578 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.3799, allocations: 4 kB / 1.337 GB, free: 1.574 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.3799, allocations: 4 kB / 1.337 GB, free: 1.57 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3799, allocations: 0 / 1.337 GB, free: 1.57 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00073/0.3806, allocations: 0.5162 MB / 1.338 GB, free: 1.035 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.3807, allocations: 117 kB / 1.338 GB, free: 0.9023 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/0.3808, allocations: 11.98 kB / 1.338 GB, free: 0.8906 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.381, allocations: 15.98 kB / 1.338 GB, free: 0.875 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.381, allocations: 7.984 kB / 1.338 GB, free: 0.8672 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.381, allocations: 7.938 kB / 1.338 GB, free: 0.8594 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001643/0.3812, allocations: 148.1 kB / 1.338 GB, free: 0.7109 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3812, allocations: 0 / 1.338 GB, free: 0.7109 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004208/0.3816, allocations: 64 kB / 1.338 GB, free: 0.6484 MB / 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.001159/0.3828, allocations: 1.067 MB / 1.339 GB, free: 15.55 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009923/0.3838, allocations: 408.6 kB / 1.34 GB, free: 15.14 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.3838, allocations: 4 kB / 1.34 GB, free: 15.13 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.384, allocations: 107.9 kB / 1.34 GB, free: 15.03 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.3844, allocations: 37.36 kB / 1.34 GB, free: 15 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.389, allocations: 2.902 MB / 1.343 GB, free: 11.96 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.3895, allocations: 0.7792 MB / 1.343 GB, free: 11.16 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002086/0.3897, allocations: 53.91 kB / 1.344 GB, free: 11.11 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.3899, allocations: 63.42 kB / 1.344 GB, free: 11.04 MB / 1.045 GB Notification: Performance of SimCode: time 1.032e-06/0.3899, allocations: 0 / 1.344 GB, free: 11.04 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.4268, allocations: 5.127 MB / 1.349 GB, free: 6.102 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.45, allocations: 7.922 kB / 1.349 GB, free: 6.094 MB / 1.045 GB " [Timeout remaining time 289] (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: 17.077085549011827]