Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001686/0.001686, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002043/0.002043, allocations: 195.8 kB / 16.14 MB, free: 6.629 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.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.857/2.857, allocations: 437 MB / 0.7099 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 67.89 kB / 0.8686 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7692/0.7713, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005637/0.777, allocations: 3.135 MB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00326/0.7803, allocations: 1.726 MB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.7805, allocations: 11.94 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.7816, allocations: 310.9 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005833/0.7822, allocations: 195.3 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.7827, allocations: 163.7 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005326/0.7832, allocations: 466.8 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005183/0.7838, allocations: 230.6 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.784, allocations: 135.5 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003654/0.7844, allocations: 167.4 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.082e-05/0.7844, allocations: 16 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005388/0.785, allocations: 287.5 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.7851, allocations: 91.78 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.7853, allocations: 119.4 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005972/0.7859, allocations: 426.7 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.7859, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.82e-07/0.7859, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.7859, allocations: 0 / 1.024 GB, free: 11.32 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.001144/0.7871, allocations: 0.5498 MB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.7871, allocations: 12.02 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007947/0.7879, allocations: 92.55 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.7883, allocations: 261.9 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.7884, allocations: 16.81 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.7885, allocations: 24.55 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000657/0.7892, allocations: 373.1 kB / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.7892, allocations: 0 / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.7892, allocations: 15.98 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.7893, allocations: 28.41 kB / 1.025 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005314/0.7899, allocations: 305.5 kB / 1.026 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.7919, allocations: 1.533 MB / 1.027 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004867/0.7924, allocations: 230.4 kB / 1.027 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.7926, allocations: 112.8 kB / 1.027 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001611/0.7928, allocations: 93.34 kB / 1.027 GB, free: 7.414 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.7929, allocations: 38.56 kB / 1.027 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.7929, allocations: 0 / 1.027 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.00144/0.7943, allocations: 0.7933 MB / 1.028 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.7944, allocations: 51.41 kB / 1.028 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.7946, allocations: 195.2 kB / 1.028 GB, free: 6.262 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/0.7947, allocations: 29.7 kB / 1.028 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.7948, allocations: 175.7 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.406e-05/0.7949, allocations: 66.95 kB / 1.029 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.7951, allocations: 61.69 kB / 1.029 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002095/0.7953, allocations: 326.8 kB / 1.029 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.7955, allocations: 111.9 kB / 1.029 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.7958, allocations: 169.9 kB / 1.029 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.7962, allocations: 287.6 kB / 1.03 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.7962, allocations: 0 / 1.03 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00095/0.7972, allocations: 425.8 kB / 1.03 GB, free: 4.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.7972, allocations: 7.938 kB / 1.03 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.7973, allocations: 4 kB / 1.03 GB, free: 4.559 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004563/0.7977, allocations: 101 kB / 1.03 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.798, allocations: 51.95 kB / 1.03 GB, free: 4.406 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/0.8003, allocations: 1.734 MB / 1.032 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.8005, allocations: 19.91 kB / 1.032 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.8006, allocations: 12 kB / 1.032 GB, free: 2.508 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 (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.0002155/0.8008, allocations: 157.8 kB / 1.032 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.465e-05/0.8008, allocations: 15.81 kB / 1.032 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006115/0.8015, allocations: 305.1 kB / 1.032 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.8015, allocations: 4 kB / 1.032 GB, free: 2.027 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.8015, allocations: 7.938 kB / 1.032 GB, free: 2.02 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.8015, allocations: 3.984 kB / 1.032 GB, free: 2.016 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.8025, allocations: 0.7107 MB / 1.033 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.8025, allocations: 0 / 1.033 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/0.8029, allocations: 55.89 kB / 1.033 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.8029, allocations: 4 kB / 1.033 GB, free: 1.184 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.8029, allocations: 4 kB / 1.033 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.8029, allocations: 4 kB / 1.033 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.8029, allocations: 7.922 kB / 1.033 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007697/0.8037, allocations: 0.5193 MB / 1.034 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/0.8038, allocations: 116.9 kB / 1.034 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.8039, allocations: 0 / 1.034 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.8041, allocations: 19.92 kB / 1.034 GB, free: 488 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.8041, allocations: 7.984 kB / 1.034 GB, free: 480 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.8041, allocations: 8 kB / 1.034 GB, free: 472 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001709/0.8043, allocations: 156 kB / 1.034 GB, free: 312 kB / 0.7794 GB Notification: Performance of sort global known variables: time 4.21e-07/0.8043, allocations: 0 / 1.034 GB, free: 312 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003815/0.8047, allocations: 68 kB / 1.034 GB, free: 244 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 (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.0002214/0.805, allocations: 103.2 kB / 1.034 GB, free: 132 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008818/0.8058, allocations: 424.3 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.8059, allocations: 0 / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.8061, allocations: 129.4 kB / 1.035 GB, free: 15.58 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.8065, allocations: 31.97 kB / 1.035 GB, free: 15.55 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.8079, allocations: 0.7173 MB / 1.035 GB, free: 14.79 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.8084, allocations: 0.7755 MB / 1.036 GB, free: 13.99 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001821/0.8086, allocations: 61.89 kB / 1.036 GB, free: 13.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.818e-05/0.8086, allocations: 23.42 kB / 1.036 GB, free: 13.91 MB / 0.795 GB Notification: Performance of SimCode: time 4.6e-07/0.8086, allocations: 0 / 1.036 GB, free: 13.91 MB / 0.795 GB Notification: Performance of Templates: time 0.007438/0.8161, allocations: 2.682 MB / 1.039 GB, free: 11.24 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches