Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 191.1 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.577/1.577, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.629/2.629, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8767/0.8781, allocations: 140.3 MB / 0.9491 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006404/0.8846, allocations: 3.137 MB / 0.9522 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003723/0.8884, allocations: 1.703 MB / 0.9538 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004173/0.8888, allocations: 2.844 kB / 0.9538 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.8903, allocations: 312.4 kB / 0.9541 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009/0.8912, allocations: 192.6 kB / 0.9543 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007169/0.892, allocations: 171.1 kB / 0.9545 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007066/0.8927, allocations: 314.6 kB / 0.9548 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006646/0.8934, allocations: 288.7 kB / 0.955 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.8937, allocations: 131.9 kB / 0.9552 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004885/0.8942, allocations: 163.5 kB / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.788e-05/0.8943, allocations: 20.97 kB / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007292/0.8951, allocations: 247.3 kB / 0.9556 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.8953, allocations: 104.9 kB / 0.9557 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002186/0.8955, allocations: 119.1 kB / 0.9558 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0009902/0.8965, allocations: 433.9 kB / 0.9562 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.8965, allocations: 0 / 0.9562 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.636e-06/0.8965, allocations: 1.188 kB / 0.9562 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.496e-05/0.8965, allocations: 4 kB / 0.9562 GB, free: 3.926 MB / 0.7169 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.001382/0.8979, allocations: 0.5532 MB / 0.9568 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.898, allocations: 9 kB / 0.9568 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009187/0.8989, allocations: 96.27 kB / 0.9569 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003933/0.8993, allocations: 257.4 kB / 0.9571 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.8994, allocations: 17.06 kB / 0.9571 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.8995, allocations: 25.05 kB / 0.9571 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000683/0.9002, allocations: 378.8 kB / 0.9575 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.9002, allocations: 0 / 0.9575 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.9003, allocations: 11.25 kB / 0.9575 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/0.9004, allocations: 29 kB / 0.9575 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005568/0.901, allocations: 306.2 kB / 0.9578 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.9029, allocations: 1.528 MB / 0.9593 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004814/0.9034, allocations: 228.9 kB / 0.9595 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.9036, allocations: 115.5 kB / 0.9597 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001611/0.9038, allocations: 91.5 kB / 0.9597 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.9038, allocations: 40.53 kB / 0.9598 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 2.274e-06/0.9038, allocations: 3.938 kB / 0.9598 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001452/0.9053, allocations: 0.784 MB / 0.9606 GB, free: 376 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.9053, allocations: 58.08 kB / 0.9606 GB, free: 308 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.9056, allocations: 190.2 kB / 0.9608 GB, free: 160 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.9056, allocations: 33.7 kB / 0.9608 GB, free: 120 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.9057, allocations: 168.2 kB / 0.961 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.127e-05/0.9058, allocations: 64 kB / 0.961 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.9059, allocations: 63.06 kB / 0.9611 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.9061, allocations: 327.4 kB / 0.9614 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.9063, allocations: 117.1 kB / 0.9615 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.9066, allocations: 171.2 kB / 0.9617 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.9071, allocations: 300.1 kB / 0.962 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.9071, allocations: 0 / 0.962 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009924/0.9081, allocations: 416 kB / 0.9624 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.9081, allocations: 5.188 kB / 0.9624 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.9082, allocations: 5.094 kB / 0.9624 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004881/0.9087, allocations: 98.58 kB / 0.9625 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.909, allocations: 58.11 kB / 0.9625 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.9114, allocations: 1.876 MB / 0.9644 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.9117, allocations: 23.56 kB / 0.9644 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.9117, allocations: 8.031 kB / 0.9644 GB, free: 13.14 MB / 0.7325 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.0002294/0.9119, allocations: 157 kB / 0.9645 GB, free: 13 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.912, allocations: 15.66 kB / 0.9646 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005695/0.9126, allocations: 301.1 kB / 0.9648 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.9126, allocations: 2.406 kB / 0.9648 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.9126, allocations: 1.375 kB / 0.9648 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.9126, allocations: 3.938 kB / 0.9649 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.9138, allocations: 0.702 MB / 0.9655 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.9138, allocations: 1.062 kB / 0.9655 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.9141, allocations: 62.08 kB / 0.9656 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.864e-06/0.9142, allocations: 5.109 kB / 0.9656 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.9142, allocations: 10.75 kB / 0.9656 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.9142, allocations: 5.406 kB / 0.9656 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.9142, allocations: 4.703 kB / 0.9656 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008522/0.9151, allocations: 0.5086 MB / 0.9661 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.9152, allocations: 123.5 kB / 0.9662 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.958e-05/0.9153, allocations: 6.344 kB / 0.9662 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.9155, allocations: 18.23 kB / 0.9663 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.115e-05/0.9155, allocations: 10.48 kB / 0.9663 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.9156, allocations: 4.344 kB / 0.9663 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001663/0.9157, allocations: 147.8 kB / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9157, allocations: 0 / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004485/0.9162, allocations: 62.12 kB / 0.9665 GB, free: 11.61 MB / 0.7325 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.0002224/0.9164, allocations: 115.4 kB / 0.9666 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009827/0.9174, allocations: 442.3 kB / 0.967 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.9174, allocations: 1.094 kB / 0.967 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.9177, allocations: 124.7 kB / 0.9671 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.9181, allocations: 48.28 kB / 0.9672 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.9198, allocations: 0.7148 MB / 0.9679 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.9203, allocations: 0.7706 MB / 0.9686 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002302/0.9205, allocations: 59.33 kB / 0.9687 GB, free: 9.867 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.827e-05/0.9206, allocations: 22.84 kB / 0.9687 GB, free: 9.855 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.9206, allocations: 9.438 kB / 0.9687 GB, free: 9.848 MB / 0.7325 GB Notification: Performance of Templates: time 0.008767/0.9294, allocations: 2.773 MB / 0.9714 GB, free: 8.488 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches