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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.006794/0.006794, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001582/0.001582, allocations: 193.3 kB / 16.79 MB, free: 5.809 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.423/1.423, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.381/2.381, allocations: 390.2 MB / 0.6649 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002341/0.002341, allocations: 63.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6161/0.6185, allocations: 140.3 MB / 0.9496 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00395/0.6225, allocations: 3.133 MB / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002238/0.6248, allocations: 1.726 MB / 0.9543 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.6249, allocations: 7.906 kB / 0.9543 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008563/0.6258, allocations: 316.9 kB / 0.9546 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004081/0.6262, allocations: 199.4 kB / 0.9548 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.6266, allocations: 164.8 kB / 0.955 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.627, allocations: 464.8 kB / 0.9554 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004078/0.6274, allocations: 240.5 kB / 0.9557 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.6276, allocations: 115.7 kB / 0.9558 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002645/0.6278, allocations: 171.9 kB / 0.9559 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.6279, allocations: 15.28 kB / 0.9559 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004061/0.6283, allocations: 288.3 kB / 0.9562 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.48e-05/0.6284, allocations: 102.5 kB / 0.9563 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.6285, allocations: 109 kB / 0.9564 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.6288, allocations: 334.4 kB / 0.9567 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.6288, allocations: 0 / 0.9567 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.42e-07/0.6288, allocations: 0 / 0.9567 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.6288, allocations: 0 / 0.9567 GB, free: 3.832 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.0008206/0.6297, allocations: 0.5459 MB / 0.9573 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.6297, allocations: 13.73 kB / 0.9573 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007084/0.6304, allocations: 91.52 kB / 0.9574 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.6307, allocations: 258.8 kB / 0.9576 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.6307, allocations: 17.47 kB / 0.9576 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-05/0.6308, allocations: 29.05 kB / 0.9577 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004857/0.6313, allocations: 374.9 kB / 0.958 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.6313, allocations: 0 / 0.958 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.6314, allocations: 6.75 kB / 0.958 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.744e-05/0.6315, allocations: 40.36 kB / 0.9581 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004446/0.6319, allocations: 306.7 kB / 0.9584 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.6333, allocations: 1.517 MB / 0.9598 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004138/0.6338, allocations: 232.9 kB / 0.9601 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.6339, allocations: 115.6 kB / 0.9602 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001177/0.6341, allocations: 96.2 kB / 0.9603 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.6341, allocations: 35.66 kB / 0.9603 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.6341, allocations: 0 / 0.9603 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001126/0.6352, allocations: 0.7906 MB / 0.9611 GB, free: 288 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.19e-05/0.6353, allocations: 53.75 kB / 0.9611 GB, free: 224 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.6354, allocations: 189.5 kB / 0.9613 GB, free: 76 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.6354, allocations: 30.73 kB / 0.9613 GB, free: 40 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.6356, allocations: 163.4 kB / 0.9615 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/0.6356, allocations: 71.64 kB / 0.9616 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.6357, allocations: 59.75 kB / 0.9616 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.6358, allocations: 330.5 kB / 0.9619 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.636, allocations: 116.8 kB / 0.962 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.6363, allocations: 172 kB / 0.9622 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000419/0.6367, allocations: 294.5 kB / 0.9625 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.6367, allocations: 1.094 kB / 0.9625 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000854/0.6376, allocations: 424.1 kB / 0.9629 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.6376, allocations: 8.125 kB / 0.9629 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6376, allocations: 1.469 kB / 0.9629 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004265/0.638, allocations: 98.67 kB / 0.963 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002691/0.6383, allocations: 56.91 kB / 0.9631 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.6403, allocations: 1.743 MB / 0.9648 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.6406, allocations: 18.78 kB / 0.9648 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.6407, allocations: 12.14 kB / 0.9648 GB, free: 13.18 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.0001841/0.6409, allocations: 165.6 kB / 0.9649 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.6409, allocations: 17.78 kB / 0.965 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004848/0.6414, allocations: 295.6 kB / 0.9652 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.6414, allocations: 2.656 kB / 0.9652 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.6414, allocations: 0 / 0.9652 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.6414, allocations: 0 / 0.9652 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009188/0.6424, allocations: 0.7042 MB / 0.9659 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.6424, allocations: 1.312 kB / 0.9659 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.6427, allocations: 62.3 kB / 0.966 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.6427, allocations: 5.844 kB / 0.966 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.6427, allocations: 2.188 kB / 0.966 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.6427, allocations: 2.406 kB / 0.966 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.6427, allocations: 7.922 kB / 0.966 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000624/0.6434, allocations: 0.5143 MB / 0.9665 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.6435, allocations: 115.2 kB / 0.9666 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.6435, allocations: 6.375 kB / 0.9666 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.6437, allocations: 14.33 kB / 0.9666 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.6438, allocations: 22.08 kB / 0.9667 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.6438, allocations: 4.406 kB / 0.9667 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001349/0.6439, allocations: 147.9 kB / 0.9668 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.644, allocations: 0 / 0.9668 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003932/0.6444, allocations: 65.78 kB / 0.9669 GB, free: 11.64 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.0001753/0.6445, allocations: 108 kB / 0.967 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000734/0.6453, allocations: 416 kB / 0.9674 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.6453, allocations: 0 / 0.9674 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.6455, allocations: 126.4 kB / 0.9675 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004034/0.6459, allocations: 39.97 kB / 0.9675 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.6472, allocations: 0.7618 MB / 0.9683 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.6475, allocations: 0.7706 MB / 0.969 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.6476, allocations: 24.77 kB / 0.969 GB, free: 9.883 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.6476, allocations: 0 / 0.969 GB, free: 9.883 MB / 0.7325 GB Notification: Performance of Templates: time 0.006033/0.6537, allocations: 3.584 MB / 0.9725 GB, free: 8.039 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/jenkins1/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