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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009963/0.0009964, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009598/0.0009598, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.687/2.687, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003969, allocations: 8 kB / 0.8708 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8981/0.8985, allocations: 153.6 MB / 1.021 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005041/0.9036, allocations: 2.611 MB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002966/0.9066, allocations: 1.594 MB / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000323/0.907, allocations: 0 / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.9073, allocations: 39.7 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000811/0.9081, allocations: 135.6 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.9087, allocations: 147.6 kB / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003637/0.9091, allocations: 171.6 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.9102, allocations: 499.2 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.9105, allocations: 95.67 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003711/0.9109, allocations: 99.64 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.249e-05/0.911, allocations: 12 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004307/0.9114, allocations: 131.8 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.9116, allocations: 87.78 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.128e-05/0.9117, allocations: 65.58 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005963/0.9123, allocations: 313.2 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.9123, allocations: 4 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.855e-06/0.9123, allocations: 0 / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.478e-05/0.9123, allocations: 0 / 1.027 GB, free: 11.05 MB / 0.7794 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.0009685/0.9133, allocations: 0.5028 MB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.9134, allocations: 12.03 kB / 1.027 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008028/0.9142, allocations: 107.6 kB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004574/0.9146, allocations: 256.3 kB / 1.027 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.9147, allocations: 12.44 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.9148, allocations: 27.98 kB / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005951/0.9154, allocations: 369 kB / 1.028 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.9155, allocations: 3.984 kB / 1.028 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.9155, allocations: 4 kB / 1.028 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.9156, allocations: 32.42 kB / 1.028 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000504/0.9161, allocations: 309.5 kB / 1.028 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.9184, allocations: 1.537 MB / 1.03 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000469/0.9188, allocations: 234.4 kB / 1.03 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001732/0.919, allocations: 97.06 kB / 1.03 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.9191, allocations: 34.56 kB / 1.03 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.814e-06/0.9191, allocations: 0 / 1.03 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001524/0.9206, allocations: 0.7911 MB / 1.031 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.9207, allocations: 55.41 kB / 1.031 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.921, allocations: 186.7 kB / 1.031 GB, free: 6.145 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.921, allocations: 29.7 kB / 1.031 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.9212, allocations: 159.8 kB / 1.031 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.9213, allocations: 67.02 kB / 1.031 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.9214, allocations: 8 kB / 1.031 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002105/0.9216, allocations: 330.8 kB / 1.032 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.9218, allocations: 115.9 kB / 1.032 GB, free: 5.43 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.9221, allocations: 167 kB / 1.032 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.9224, allocations: 128 kB / 1.032 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.9224, allocations: 0 / 1.032 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007528/0.9232, allocations: 420.7 kB / 1.032 GB, free: 4.703 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.9232, allocations: 4 kB / 1.032 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.9232, allocations: 4 kB / 1.032 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004171/0.9236, allocations: 100.9 kB / 1.033 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.9239, allocations: 51.91 kB / 1.033 GB, free: 4.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.926, allocations: 1.769 MB / 1.034 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.9262, allocations: 16.39 kB / 1.034 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.9262, allocations: 15.98 kB / 1.034 GB, free: 2.609 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000169/0.9264, allocations: 161.8 kB / 1.034 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.593e-05/0.9265, allocations: 19.8 kB / 1.035 GB, free: 2.422 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000468/0.9269, allocations: 301.4 kB / 1.035 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.9269, allocations: 7.984 kB / 1.035 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.927, allocations: 0 / 1.035 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.927, allocations: 0 / 1.035 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.928, allocations: 0.7083 MB / 1.036 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.928, allocations: 0 / 1.036 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.9283, allocations: 59.89 kB / 1.036 GB, free: 1.289 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.9284, allocations: 0 / 1.036 GB, free: 1.289 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.9284, allocations: 8 kB / 1.036 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.9284, allocations: 0 / 1.036 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9284, allocations: 0 / 1.036 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006355/0.929, allocations: 0.5396 MB / 1.036 GB, free: 0.707 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.9292, allocations: 112.9 kB / 1.036 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.9292, allocations: 11.94 kB / 1.036 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.9294, allocations: 15.98 kB / 1.036 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.27e-05/0.9294, allocations: 11.92 kB / 1.036 GB, free: 0.5391 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.9295, allocations: 16 kB / 1.036 GB, free: 0.5234 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001324/0.9296, allocations: 148 kB / 1.036 GB, free: 384 kB / 0.7794 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9296, allocations: 0 / 1.036 GB, free: 384 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003678/0.93, allocations: 64 kB / 1.036 GB, free: 320 kB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002039/0.9302, allocations: 111.2 kB / 1.037 GB, free: 200 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007173/0.9309, allocations: 418.7 kB / 1.037 GB, free: 15.77 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.9309, allocations: 0 / 1.037 GB, free: 15.77 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.9311, allocations: 123.8 kB / 1.037 GB, free: 15.65 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.9314, allocations: 31.5 kB / 1.037 GB, free: 15.62 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.9327, allocations: 0.7683 MB / 1.038 GB, free: 14.82 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.9331, allocations: 0.7755 MB / 1.039 GB, free: 14.02 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001763/0.9333, allocations: 61.84 kB / 1.039 GB, free: 13.96 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.9334, allocations: 19.42 kB / 1.039 GB, free: 13.94 MB / 0.795 GB Notification: Performance of SimCode: time 3.71e-07/0.9334, allocations: 0 / 1.039 GB, free: 13.94 MB / 0.795 GB Notification: Performance of Templates: time 0.006047/0.9394, allocations: 2.562 MB / 1.041 GB, free: 11.39 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches