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.001295/0.001295, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001421/0.001421, allocations: 212.5 kB / 23.03 MB, free: 4.922 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.413/1.413, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.111/3.111, allocations: 0.5003 GB / 0.8062 GB, free: 28.27 MB / 0.6231 GB " [Timeout remaining time 177] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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.00199/0.00199, allocations: 65.81 kB / 1.17 GB, free: 19.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3225, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004861/0.3274, allocations: 3.092 MB / 1.348 GB, free: 12.84 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002895/0.3303, allocations: 1.671 MB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.3304, allocations: 7.938 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.3314, allocations: 333.3 kB / 1.35 GB, free: 10.83 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0004801/0.3319, allocations: 219.1 kB / 1.35 GB, free: 10.62 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004501/0.3324, allocations: 187.4 kB / 1.351 GB, free: 10.43 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003847/0.3328, allocations: 311 kB / 1.351 GB, free: 10.13 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.3331, allocations: 184.9 kB / 1.351 GB, free: 9.941 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.3333, allocations: 143.6 kB / 1.351 GB, free: 9.801 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003082/0.3336, allocations: 171.4 kB / 1.351 GB, free: 9.633 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.792e-05/0.3337, allocations: 20 kB / 1.351 GB, free: 9.613 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003636/0.334, allocations: 227.5 kB / 1.352 GB, free: 9.391 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.3342, allocations: 99.72 kB / 1.352 GB, free: 9.293 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.3343, allocations: 103.5 kB / 1.352 GB, free: 9.191 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005408/0.3348, allocations: 434.5 kB / 1.352 GB, free: 8.766 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3348, allocations: 0 / 1.352 GB, free: 8.766 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3348, allocations: 0 / 1.352 GB, free: 8.766 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.3348, allocations: 0 / 1.352 GB, free: 8.766 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.0009377/0.3358, allocations: 485.4 kB / 1.353 GB, free: 8.262 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3358, allocations: 8.031 kB / 1.353 GB, free: 8.254 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.314e-05/0.3358, allocations: 8.625 kB / 1.353 GB, free: 8.246 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.403e-05/0.3359, allocations: 62.66 kB / 1.353 GB, free: 8.176 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007447/0.3366, allocations: 96.64 kB / 1.353 GB, free: 8.082 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.337, allocations: 210 kB / 1.353 GB, free: 7.852 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.337, allocations: 12.81 kB / 1.353 GB, free: 7.84 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.3371, allocations: 32.31 kB / 1.353 GB, free: 7.809 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006233/0.3377, allocations: 424 kB / 1.354 GB, free: 7.355 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.3377, allocations: 0 / 1.354 GB, free: 7.355 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.3378, allocations: 15.92 kB / 1.354 GB, free: 7.34 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/0.3379, allocations: 32.41 kB / 1.354 GB, free: 7.309 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004884/0.3383, allocations: 305.5 kB / 1.354 GB, free: 7.012 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.34, allocations: 1.093 MB / 1.355 GB, free: 5.859 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004408/0.3405, allocations: 206.5 kB / 1.355 GB, free: 5.648 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3406, allocations: 104.8 kB / 1.355 GB, free: 5.543 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.3407, allocations: 11.98 kB / 1.355 GB, free: 5.531 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.3408, allocations: 30.56 kB / 1.355 GB, free: 5.492 MB / 1.045 GB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.3408, allocations: 0 / 1.355 GB, free: 5.492 MB / 1.045 GB Notification: Performance of matching and sorting (n=19): time 0.001276/0.342, allocations: 0.7185 MB / 1.356 GB, free: 4.742 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.3421, allocations: 63.3 kB / 1.356 GB, free: 4.668 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.3423, allocations: 186.7 kB / 1.356 GB, free: 4.477 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.3423, allocations: 37.7 kB / 1.356 GB, free: 4.434 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.3424, allocations: 168.1 kB / 1.356 GB, free: 4.262 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.56e-05/0.3425, allocations: 71.38 kB / 1.356 GB, free: 4.191 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.3426, allocations: 53.69 kB / 1.357 GB, free: 4.133 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3428, allocations: 330.8 kB / 1.357 GB, free: 3.801 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.3429, allocations: 119.9 kB / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.3432, allocations: 163.5 kB / 1.357 GB, free: 3.504 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000413/0.3436, allocations: 297.8 kB / 1.357 GB, free: 3.191 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3436, allocations: 4 kB / 1.357 GB, free: 3.188 MB / 1.045 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008005/0.3444, allocations: 413.9 kB / 1.358 GB, free: 2.773 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3444, allocations: 8 kB / 1.358 GB, free: 2.766 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.3444, allocations: 0 / 1.358 GB, free: 2.766 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004133/0.3448, allocations: 101 kB / 1.358 GB, free: 2.664 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.3451, allocations: 51.89 kB / 1.358 GB, free: 2.613 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002054/0.3471, allocations: 1.768 MB / 1.36 GB, free: 0.7305 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.3474, allocations: 20 kB / 1.36 GB, free: 0.7109 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.3474, allocations: 11.98 kB / 1.36 GB, free: 0.6992 MB / 1.045 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.000172/0.3476, allocations: 159.2 kB / 1.36 GB, free: 0.5352 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.143e-05/0.3476, allocations: 15.91 kB / 1.36 GB, free: 0.5195 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005123/0.3481, allocations: 296.6 kB / 1.36 GB, free: 232 kB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3481, allocations: 4 kB / 1.36 GB, free: 228 kB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3481, allocations: 3.938 kB / 1.36 GB, free: 224 kB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3481, allocations: 0 / 1.36 GB, free: 224 kB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009342/0.3491, allocations: 0.6488 MB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3491, allocations: 0 / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.3494, allocations: 55.89 kB / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3494, allocations: 12 kB / 1.361 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.3494, allocations: 8 kB / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3494, allocations: 0 / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3494, allocations: 0 / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.3501, allocations: 0.5218 MB / 1.361 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.3501, allocations: 39.77 kB / 1.361 GB, free: 14.86 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/0.3502, allocations: 11.98 kB / 1.361 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.3504, allocations: 11.98 kB / 1.361 GB, free: 14.84 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.3504, allocations: 11.98 kB / 1.361 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.3504, allocations: 4 kB / 1.361 GB, free: 14.82 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000146/0.3506, allocations: 152 kB / 1.362 GB, free: 14.67 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3506, allocations: 4.062 kB / 1.362 GB, free: 14.66 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003665/0.3509, allocations: 60 kB / 1.362 GB, free: 14.61 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.0009962/0.3519, allocations: 1.065 MB / 1.363 GB, free: 13.5 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000749/0.3527, allocations: 412.4 kB / 1.363 GB, free: 13.09 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3527, allocations: 4.062 kB / 1.363 GB, free: 13.09 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.3528, allocations: 111.9 kB / 1.363 GB, free: 12.98 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.3532, allocations: 38.48 kB / 1.363 GB, free: 12.94 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003916/0.3571, allocations: 2.897 MB / 1.366 GB, free: 9.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.3573, allocations: 165.2 kB / 1.366 GB, free: 9.73 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001664/0.3575, allocations: 57.91 kB / 1.366 GB, free: 9.672 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.3576, allocations: 67.41 kB / 1.366 GB, free: 9.605 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.3576, allocations: 0 / 1.366 GB, free: 9.605 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.3861, allocations: 5.451 MB / 1.372 GB, free: 4.344 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.93, allocations: 8.047 kB / 1.372 GB, free: 4.336 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.466316882986575]