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.001347/0.001347, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001529/0.001529, allocations: 212.3 kB / 22.99 MB, free: 4.984 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.2/3.2, allocations: 0.49 GB / 0.7959 GB, free: 35.48 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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") [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.002031/0.002031, allocations: 69.77 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2944, allocations: 176.1 MB / 1.327 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004948/0.2993, allocations: 3.093 MB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00285/0.3022, allocations: 1.702 MB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.917e-05/0.3023, allocations: 4 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.3033, allocations: 325.7 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004647/0.3038, allocations: 227 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004448/0.3042, allocations: 179.5 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003867/0.3046, allocations: 315 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003256/0.305, allocations: 173.5 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.3052, allocations: 143.6 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003008/0.3055, allocations: 179.4 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.934e-05/0.3055, allocations: 24 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000349/0.3059, allocations: 219.5 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.306, allocations: 103.7 kB / 1.334 GB, free: 10.33 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.3061, allocations: 107.5 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005437/0.3067, allocations: 422.5 kB / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3067, allocations: 4 kB / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.694e-06/0.3067, allocations: 0 / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.3067, allocations: 0 / 1.334 GB, free: 9.809 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.0009699/0.3077, allocations: 485.4 kB / 1.335 GB, free: 9.305 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.3077, allocations: 12.03 kB / 1.335 GB, free: 9.293 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007574/0.3084, allocations: 96.62 kB / 1.335 GB, free: 9.199 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.3088, allocations: 203.5 kB / 1.335 GB, free: 8.977 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.3088, allocations: 16.8 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.3089, allocations: 28.52 kB / 1.335 GB, free: 8.934 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006445/0.3096, allocations: 436.1 kB / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3096, allocations: 0 / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.3096, allocations: 8 kB / 1.335 GB, free: 8.461 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/0.3097, allocations: 32.42 kB / 1.335 GB, free: 8.43 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000514/0.3102, allocations: 305.5 kB / 1.336 GB, free: 8.133 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.3119, allocations: 1.046 MB / 1.337 GB, free: 7.035 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.3124, allocations: 206.5 kB / 1.337 GB, free: 6.824 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.3125, allocations: 104.7 kB / 1.337 GB, free: 6.719 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.3126, allocations: 15.98 kB / 1.337 GB, free: 6.703 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.3127, allocations: 38.56 kB / 1.337 GB, free: 6.656 MB / 1.029 GB Notification: Performance of pre-optimization done (n=18): time 1.313e-06/0.3127, allocations: 0 / 1.337 GB, free: 6.656 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.001298/0.314, allocations: 0.7189 MB / 1.338 GB, free: 5.906 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.314, allocations: 55.41 kB / 1.338 GB, free: 5.84 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.3142, allocations: 190.7 kB / 1.338 GB, free: 5.645 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.3142, allocations: 33.64 kB / 1.338 GB, free: 5.605 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3143, allocations: 156.5 kB / 1.338 GB, free: 5.445 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.573e-05/0.3144, allocations: 75.38 kB / 1.338 GB, free: 5.371 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.3145, allocations: 53.7 kB / 1.338 GB, free: 5.312 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3147, allocations: 334.8 kB / 1.339 GB, free: 4.977 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.3148, allocations: 107.9 kB / 1.339 GB, free: 4.871 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.3151, allocations: 173.9 kB / 1.339 GB, free: 4.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004304/0.3155, allocations: 305 kB / 1.339 GB, free: 4.363 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3155, allocations: 0 / 1.339 GB, free: 4.363 MB / 1.029 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008091/0.3163, allocations: 414 kB / 1.34 GB, free: 3.949 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3163, allocations: 7.938 kB / 1.34 GB, free: 3.941 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3163, allocations: 4 kB / 1.34 GB, free: 3.938 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004429/0.3168, allocations: 100.9 kB / 1.34 GB, free: 3.836 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.317, allocations: 51.91 kB / 1.34 GB, free: 3.785 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.3191, allocations: 1.741 MB / 1.341 GB, free: 1.941 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.3194, allocations: 16.02 kB / 1.341 GB, free: 1.926 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.3194, allocations: 8 kB / 1.341 GB, free: 1.918 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.000172/0.3196, allocations: 163.7 kB / 1.342 GB, free: 1.75 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.401e-05/0.3196, allocations: 19.89 kB / 1.342 GB, free: 1.73 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005144/0.3201, allocations: 297.8 kB / 1.342 GB, free: 1.438 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3201, allocations: 4 kB / 1.342 GB, free: 1.434 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.3201, allocations: 4.062 kB / 1.342 GB, free: 1.43 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3202, allocations: 0 / 1.342 GB, free: 1.43 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009235/0.3211, allocations: 0.605 MB / 1.342 GB, free: 0.7812 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3211, allocations: 4 kB / 1.342 GB, free: 0.7773 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.3214, allocations: 55.89 kB / 1.342 GB, free: 0.7227 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3214, allocations: 4 kB / 1.343 GB, free: 0.7188 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.3214, allocations: 4 kB / 1.343 GB, free: 0.7148 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3214, allocations: 4 kB / 1.343 GB, free: 0.7109 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3214, allocations: 0 / 1.343 GB, free: 0.7109 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006755/0.3221, allocations: 0.5211 MB / 1.343 GB, free: 172 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.3222, allocations: 39.88 kB / 1.343 GB, free: 132 kB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.3222, allocations: 11.92 kB / 1.343 GB, free: 120 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.3224, allocations: 15.92 kB / 1.343 GB, free: 104 kB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.3225, allocations: 11.92 kB / 1.343 GB, free: 92 kB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.3225, allocations: 12 kB / 1.343 GB, free: 80 kB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001514/0.3226, allocations: 144.2 kB / 1.343 GB, free: 15.94 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3226, allocations: 0 / 1.343 GB, free: 15.94 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003742/0.323, allocations: 60 kB / 1.343 GB, free: 15.88 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.0001553/0.3232, allocations: 111.2 kB / 1.343 GB, free: 15.76 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0007731/0.3239, allocations: 402.4 kB / 1.344 GB, free: 15.35 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.324, allocations: 0 / 1.344 GB, free: 15.35 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.3241, allocations: 113.6 kB / 1.344 GB, free: 15.24 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.3245, allocations: 43.5 kB / 1.344 GB, free: 15.2 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.3258, allocations: 0.6313 MB / 1.345 GB, free: 14.54 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.3259, allocations: 165.2 kB / 1.345 GB, free: 14.36 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001602/0.3261, allocations: 57.89 kB / 1.345 GB, free: 14.3 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.779e-05/0.3262, allocations: 19.44 kB / 1.345 GB, free: 14.28 MB / 1.045 GB Notification: Performance of SimCode: time 4.71e-07/0.3262, allocations: 0 / 1.345 GB, free: 14.28 MB / 1.045 GB Notification: Performance of Templates: time 0.007016/0.3332, allocations: 3.081 MB / 1.348 GB, free: 11.23 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 400] 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] "" Variables in the reference:time,sen.I,sen.V,loa.S[1],loa.S[2] Variables in the result:$cse1,loa.P_nominal,loa.S[1],loa.S[2],loa.V_nominal,loa.initMode,loa.linearized,loa.mode,loa.pf,loa.use_pf_in,res.M,res.R,res.T,res.T_ref,sen.I,sen.V,sou.V,sou.definiteReference,sou.f,sou.phiSou,sou.potentialReference,time [Calling sys.exit(0), Time elapsed: 8.422559448998072]