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.008878/0.008878, allocations: 103 kB / 15.73 MB, free: 6.004 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.001479/0.001478, allocations: 193.8 kB / 16.68 MB, free: 5.93 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.395/2.395, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001255, allocations: 63.91 kB / 0.9508 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.188/1.189, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00535/1.195, allocations: 3.068 MB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003352/1.198, allocations: 1.728 MB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/1.198, allocations: 7.719 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00116/1.2, allocations: 342.3 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008014/1.2, allocations: 212.9 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007257/1.201, allocations: 184.4 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005808/1.202, allocations: 317.2 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005552/1.202, allocations: 233.3 kB / 1.094 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/1.203, allocations: 142.9 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004294/1.203, allocations: 158.2 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/1.203, allocations: 20.75 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007244/1.204, allocations: 241.2 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001583/1.204, allocations: 102 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001634/1.204, allocations: 128.9 kB / 1.095 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007771/1.205, allocations: 423.4 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/1.205, allocations: 0 / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.285e-06/1.205, allocations: 0 / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.909e-06/1.205, allocations: 0.5312 kB / 1.095 GB, free: 1.211 MB / 0.8575 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.001083/1.206, allocations: 0.5435 MB / 1.096 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/1.206, allocations: 12.62 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008489/1.207, allocations: 97.3 kB / 1.096 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/1.207, allocations: 261.2 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/1.207, allocations: 16.86 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/1.207, allocations: 30.77 kB / 1.096 GB, free: 464 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006922/1.208, allocations: 375.6 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/1.208, allocations: 1.516 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/1.208, allocations: 10.75 kB / 1.096 GB, free: 264 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/1.208, allocations: 29.42 kB / 1.096 GB, free: 260 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005811/1.209, allocations: 306.1 kB / 1.097 GB, free: 152 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/1.211, allocations: 1.516 MB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005181/1.212, allocations: 235.8 kB / 1.098 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/1.212, allocations: 119.1 kB / 1.098 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001603/1.212, allocations: 90.58 kB / 1.099 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/1.212, allocations: 36.5 kB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 2.084e-06/1.212, allocations: 3.938 kB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001544/1.214, allocations: 0.7914 MB / 1.099 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/1.214, allocations: 54.91 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/1.214, allocations: 198.3 kB / 1.1 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/1.214, allocations: 30.7 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/1.214, allocations: 162.2 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.237e-05/1.214, allocations: 69.22 kB / 1.1 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/1.214, allocations: 54.03 kB / 1.1 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001285/1.214, allocations: 332.1 kB / 1.1 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/1.215, allocations: 114.7 kB / 1.1 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/1.215, allocations: 165.6 kB / 1.1 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004809/1.215, allocations: 298.2 kB / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/1.215, allocations: 0 / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000929/1.216, allocations: 427.3 kB / 1.101 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/1.216, allocations: 6.906 kB / 1.101 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/1.216, allocations: 1.906 kB / 1.101 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004865/1.217, allocations: 100.3 kB / 1.101 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/1.217, allocations: 51.47 kB / 1.101 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002229/1.219, allocations: 1.877 MB / 1.103 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/1.22, allocations: 19.78 kB / 1.103 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/1.22, allocations: 16.3 kB / 1.103 GB, free: 11.22 MB / 0.8731 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.0002296/1.22, allocations: 156 kB / 1.103 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.218e-05/1.22, allocations: 16.91 kB / 1.103 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000647/1.221, allocations: 295.5 kB / 1.104 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/1.221, allocations: 2.125 kB / 1.104 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/1.221, allocations: 0.625 kB / 1.104 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/1.221, allocations: 10.38 kB / 1.104 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/1.222, allocations: 0.6967 MB / 1.104 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/1.222, allocations: 5.312 kB / 1.104 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003322/1.222, allocations: 53.83 kB / 1.104 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/1.222, allocations: 1.281 kB / 1.104 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/1.222, allocations: 11.64 kB / 1.104 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/1.222, allocations: 1.125 kB / 1.104 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.222, allocations: 5.969 kB / 1.104 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008377/1.223, allocations: 0.5119 MB / 1.105 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/1.223, allocations: 122.1 kB / 1.105 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/1.223, allocations: 4.25 kB / 1.105 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/1.224, allocations: 13.59 kB / 1.105 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/1.224, allocations: 19.78 kB / 1.105 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/1.224, allocations: 4.594 kB / 1.105 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001659/1.224, allocations: 142.3 kB / 1.105 GB, free: 9.949 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.31e-07/1.224, allocations: 1.188 kB / 1.105 GB, free: 9.949 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004375/1.224, allocations: 66.2 kB / 1.105 GB, free: 9.941 MB / 0.8731 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.0001887/1.224, allocations: 108.9 kB / 1.105 GB, free: 9.844 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000896/1.225, allocations: 428.5 kB / 1.106 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.225, allocations: 1.125 kB / 1.106 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002048/1.226, allocations: 122.7 kB / 1.106 GB, free: 9.586 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/1.226, allocations: 48.06 kB / 1.106 GB, free: 9.559 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/1.227, allocations: 0.6178 MB / 1.107 GB, free: 9.184 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000414/1.228, allocations: 0.7764 MB / 1.107 GB, free: 8.473 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001955/1.228, allocations: 55.44 kB / 1.107 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/1.228, allocations: 24.11 kB / 1.107 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of SimCode: time 8.41e-07/1.228, allocations: 0 / 1.107 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of Templates: time 0.008111/1.236, allocations: 2.864 MB / 1.11 GB, free: 8.242 MB / 0.8731 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