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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004411/0.004411, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001075/0.001075, allocations: 193.7 kB / 16.67 MB, free: 5.969 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.201/2.201, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 71.88 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7253/0.7267, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004113/0.7309, allocations: 3.079 MB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002466/0.7334, allocations: 1.724 MB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.7335, allocations: 4.156 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.7346, allocations: 340.6 kB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005969/0.7352, allocations: 208.9 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005531/0.7357, allocations: 182.9 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.7362, allocations: 322.7 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.7366, allocations: 234.1 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.7369, allocations: 134.5 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004043/0.7373, allocations: 162.5 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.693e-05/0.7373, allocations: 21.22 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004446/0.7378, allocations: 245.3 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.7379, allocations: 102.3 kB / 1.094 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.7381, allocations: 124.5 kB / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006156/0.7387, allocations: 427.6 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.7387, allocations: 0.625 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7387, allocations: 0.5 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.7387, allocations: 0 / 1.095 GB, free: 0.9453 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.0009107/0.7397, allocations: 0.5663 MB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.7397, allocations: 9.656 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.025e-05/0.7398, allocations: 57.34 kB / 1.095 GB, free: 408 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007739/0.7405, allocations: 91.97 kB / 1.095 GB, free: 392 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.7409, allocations: 257.9 kB / 1.096 GB, free: 148 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.7409, allocations: 17.89 kB / 1.096 GB, free: 140 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.741, allocations: 29.39 kB / 1.096 GB, free: 128 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/0.7417, allocations: 368.6 kB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.7417, allocations: 5.016 kB / 1.096 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.88e-05/0.7418, allocations: 14.78 kB / 1.096 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/0.7419, allocations: 30.14 kB / 1.096 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005494/0.7425, allocations: 305.3 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.7443, allocations: 1.529 MB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004949/0.7448, allocations: 231.7 kB / 1.098 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.745, allocations: 115.1 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.7452, allocations: 85.91 kB / 1.098 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.7452, allocations: 37.39 kB / 1.098 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.502e-06/0.7452, allocations: 3.938 kB / 1.098 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001402/0.7466, allocations: 0.7986 MB / 1.099 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.7467, allocations: 54.98 kB / 1.099 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.7469, allocations: 194.7 kB / 1.099 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.747, allocations: 26.86 kB / 1.099 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.7471, allocations: 166.3 kB / 1.099 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.406e-05/0.7471, allocations: 74.34 kB / 1.099 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.7473, allocations: 57.08 kB / 1.1 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.7474, allocations: 336.4 kB / 1.1 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.7476, allocations: 114.5 kB / 1.1 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.7478, allocations: 168.8 kB / 1.1 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.7483, allocations: 290.5 kB / 1.1 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7483, allocations: 1.062 kB / 1.1 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008389/0.7491, allocations: 423.5 kB / 1.101 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.7492, allocations: 6.094 kB / 1.101 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.7492, allocations: 1.531 kB / 1.101 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004437/0.7496, allocations: 97.03 kB / 1.101 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/0.7499, allocations: 54.77 kB / 1.101 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/0.7519, allocations: 1.874 MB / 1.103 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.7522, allocations: 19.44 kB / 1.103 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.7522, allocations: 12.34 kB / 1.103 GB, free: 10.89 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.0001909/0.7524, allocations: 156.5 kB / 1.103 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.824e-05/0.7525, allocations: 20.38 kB / 1.103 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005713/0.753, allocations: 300.4 kB / 1.103 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.7531, allocations: 3.25 kB / 1.103 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.7531, allocations: 4.438 kB / 1.103 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.7531, allocations: 5.25 kB / 1.103 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.7542, allocations: 0.7079 MB / 1.104 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.7543, allocations: 0.6094 kB / 1.104 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/0.7546, allocations: 58.73 kB / 1.104 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.7546, allocations: 5.062 kB / 1.104 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.7546, allocations: 7.156 kB / 1.104 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.7546, allocations: 5.906 kB / 1.104 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7546, allocations: 1.469 kB / 1.104 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006737/0.7553, allocations: 0.5098 MB / 1.105 GB, free: 9.832 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.7555, allocations: 123.2 kB / 1.105 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.7555, allocations: 4.438 kB / 1.105 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.7557, allocations: 13.64 kB / 1.105 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.7557, allocations: 18.12 kB / 1.105 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.7558, allocations: 9.625 kB / 1.105 GB, free: 9.699 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000147/0.7559, allocations: 143.6 kB / 1.105 GB, free: 9.602 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7559, allocations: 4.062 kB / 1.105 GB, free: 9.598 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004188/0.7563, allocations: 65.95 kB / 1.105 GB, free: 9.59 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.001063/0.7574, allocations: 1.053 MB / 1.106 GB, free: 8.77 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008445/0.7583, allocations: 432 kB / 1.106 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.7583, allocations: 0 / 1.106 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.7585, allocations: 121.2 kB / 1.106 GB, free: 8.508 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.7589, allocations: 40.28 kB / 1.106 GB, free: 8.488 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004392/0.7633, allocations: 2.899 MB / 1.109 GB, free: 6.527 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/0.7638, allocations: 0.7734 MB / 1.11 GB, free: 5.82 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002103/0.764, allocations: 63.69 kB / 1.11 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.7642, allocations: 68.3 kB / 1.11 GB, free: 5.758 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.7642, allocations: 1.156 kB / 1.11 GB, free: 5.758 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.7914, allocations: 5.084 MB / 1.115 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.55/10.34, allocations: 18.48 kB / 1.115 GB, free: 5.16 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/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