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.001441/0.001441, allocations: 113 kB / 18.94 MB, free: 2.934 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.002274/0.002274, allocations: 208.2 kB / 22.25 MB, free: 5.086 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.391/1.391, allocations: 230.6 MB / 256 MB, free: 8 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 2.967/2.967, allocations: 0.49 GB / 0.7951 GB, free: 33.52 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="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.001943/0.001943, allocations: 74.05 kB / 1.154 GB, free: 25.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3038, allocations: 176.1 MB / 1.326 GB, free: 1.93 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004681/0.3085, allocations: 3.216 MB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002895/0.3114, allocations: 1.831 MB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.3115, allocations: 7.938 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.3126, allocations: 342.1 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005131/0.3131, allocations: 215.1 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000467/0.3135, allocations: 175.6 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003787/0.3139, allocations: 323 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003085/0.3142, allocations: 173.5 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.3145, allocations: 147.5 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.3148, allocations: 175.4 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.3148, allocations: 20 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003791/0.3152, allocations: 251.5 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.3153, allocations: 107.6 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.3154, allocations: 123.4 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005137/0.3159, allocations: 418.5 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3159, allocations: 0 / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3159, allocations: 0 / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.3159, allocations: 0 / 1.333 GB, free: 10.43 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.0009298/0.3169, allocations: 497.3 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.3169, allocations: 12.03 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.09e-05/0.317, allocations: 62.72 kB / 1.334 GB, free: 9.832 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007114/0.3177, allocations: 92.69 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003339/0.318, allocations: 195.3 kB / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.318, allocations: 16.8 kB / 1.334 GB, free: 9.512 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.484e-05/0.3181, allocations: 32.45 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005623/0.3187, allocations: 380.5 kB / 1.334 GB, free: 9.086 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3187, allocations: 0 / 1.334 GB, free: 9.086 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.3187, allocations: 8 kB / 1.334 GB, free: 9.078 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.184e-05/0.3188, allocations: 28.42 kB / 1.334 GB, free: 9.051 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004789/0.3193, allocations: 309.4 kB / 1.335 GB, free: 8.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.3212, allocations: 1.495 MB / 1.336 GB, free: 7.105 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004293/0.3216, allocations: 218.3 kB / 1.336 GB, free: 6.883 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3217, allocations: 104.8 kB / 1.337 GB, free: 6.777 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.3218, allocations: 11.98 kB / 1.337 GB, free: 6.766 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.3219, allocations: 34.56 kB / 1.337 GB, free: 6.723 MB / 1.029 GB Notification: Performance of pre-optimization done (n=18): time 1.222e-06/0.3219, allocations: 0 / 1.337 GB, free: 6.723 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.001236/0.3231, allocations: 0.719 MB / 1.337 GB, free: 5.973 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.3231, allocations: 51.41 kB / 1.337 GB, free: 5.91 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.3233, allocations: 202.7 kB / 1.338 GB, free: 5.703 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.3234, allocations: 25.7 kB / 1.338 GB, free: 5.672 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.3235, allocations: 168.1 kB / 1.338 GB, free: 5.504 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.806e-05/0.3235, allocations: 63.44 kB / 1.338 GB, free: 5.441 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-05/0.3236, allocations: 65.64 kB / 1.338 GB, free: 5.371 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3238, allocations: 326.8 kB / 1.338 GB, free: 5.043 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.3239, allocations: 115.9 kB / 1.338 GB, free: 4.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.3242, allocations: 181.9 kB / 1.338 GB, free: 4.73 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.3246, allocations: 288.3 kB / 1.339 GB, free: 4.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3246, allocations: 4 kB / 1.339 GB, free: 4.426 MB / 1.029 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007581/0.3253, allocations: 412.6 kB / 1.339 GB, free: 4.016 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.3253, allocations: 8 kB / 1.339 GB, free: 4.008 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.3254, allocations: 8.188 kB / 1.339 GB, free: 4 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003991/0.3258, allocations: 100.8 kB / 1.339 GB, free: 3.898 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.326, allocations: 51.91 kB / 1.339 GB, free: 3.848 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.328, allocations: 1.776 MB / 1.341 GB, free: 1.957 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.3282, allocations: 15.92 kB / 1.341 GB, free: 1.941 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.3282, allocations: 11.98 kB / 1.341 GB, free: 1.93 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.0001612/0.3283, allocations: 159.3 kB / 1.341 GB, free: 1.766 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.3284, allocations: 19.86 kB / 1.341 GB, free: 1.746 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004843/0.3289, allocations: 307.4 kB / 1.341 GB, free: 1.438 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3289, allocations: 8 kB / 1.341 GB, free: 1.43 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.3289, allocations: 0 / 1.341 GB, free: 1.43 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3289, allocations: 3.938 kB / 1.341 GB, free: 1.426 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009212/0.3298, allocations: 0.6688 MB / 1.342 GB, free: 0.7031 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3298, allocations: 0 / 1.342 GB, free: 0.7031 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/0.3301, allocations: 51.95 kB / 1.342 GB, free: 0.6523 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.625e-06/0.3301, allocations: 15.94 kB / 1.342 GB, free: 0.6367 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.3301, allocations: 7.984 kB / 1.342 GB, free: 0.6289 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3301, allocations: 4 kB / 1.342 GB, free: 0.625 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3301, allocations: 0 / 1.342 GB, free: 0.625 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006248/0.3308, allocations: 0.5083 MB / 1.343 GB, free: 100 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3309, allocations: 47.86 kB / 1.343 GB, free: 52 kB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.3309, allocations: 8 kB / 1.343 GB, free: 44 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.3311, allocations: 15.98 kB / 1.343 GB, free: 28 kB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.3311, allocations: 15.91 kB / 1.343 GB, free: 12 kB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.3311, allocations: 4 kB / 1.343 GB, free: 8 kB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001563/0.3313, allocations: 152.1 kB / 1.343 GB, free: 15.85 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3313, allocations: 0 / 1.343 GB, free: 15.85 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003421/0.3316, allocations: 64 kB / 1.343 GB, free: 15.79 MB / 1.045 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.0009869/0.3326, allocations: 1.057 MB / 1.344 GB, free: 14.7 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0007168/0.3333, allocations: 412 kB / 1.344 GB, free: 14.28 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3333, allocations: 0 / 1.344 GB, free: 14.28 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.3335, allocations: 107.9 kB / 1.345 GB, free: 14.18 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.3338, allocations: 41.2 kB / 1.345 GB, free: 14.14 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/0.3376, allocations: 2.893 MB / 1.347 GB, free: 11.11 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.338, allocations: 0.7753 MB / 1.348 GB, free: 10.31 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001544/0.3382, allocations: 57.92 kB / 1.348 GB, free: 10.26 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.3383, allocations: 67.41 kB / 1.348 GB, free: 10.19 MB / 1.045 GB Notification: Performance of SimCode: time 4.31e-07/0.3383, allocations: 4 kB / 1.348 GB, free: 10.19 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5076/0.8459, allocations: 5.339 MB / 1.353 GB, free: 5.004 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.61, allocations: 3.406 kB / 1.353 GB, free: 5.004 MB / 1.045 GB " [Timeout remaining time 287] (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: 19.163147462997586]