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.006102/0.006102, allocations: 103.2 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.001359/0.001359, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.154/2.154, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 59.91 kB / 0.9504 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7447/0.746, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004084/0.7501, allocations: 3.084 MB / 1.09 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002496/0.7526, allocations: 1.733 MB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.7528, allocations: 7.469 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009507/0.7537, allocations: 331.7 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004698/0.7542, allocations: 214 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004515/0.7547, allocations: 175.1 kB / 1.093 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003621/0.755, allocations: 322 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.7554, allocations: 235.7 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.7556, allocations: 137.9 kB / 1.094 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003011/0.7559, allocations: 162.1 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.059e-05/0.756, allocations: 20.75 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004114/0.7564, allocations: 237.5 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.7565, allocations: 109.9 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.7567, allocations: 125.5 kB / 1.094 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005591/0.7572, allocations: 420 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.7573, allocations: 0.6875 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.784e-06/0.7573, allocations: 0 / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.7573, allocations: 0.5312 kB / 1.095 GB, free: 0.957 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.0008958/0.7582, allocations: 0.5507 MB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.7582, allocations: 13.75 kB / 1.095 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.485e-05/0.7583, allocations: 57.48 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007536/0.7591, allocations: 92.56 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.7594, allocations: 261.3 kB / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.7594, allocations: 13.69 kB / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.7595, allocations: 25.77 kB / 1.096 GB, free: 156 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/0.7601, allocations: 380.3 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.7602, allocations: 0.7812 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.7602, allocations: 10.09 kB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.7603, allocations: 31.88 kB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000544/0.7609, allocations: 304.3 kB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.7627, allocations: 1.529 MB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004469/0.7632, allocations: 226.8 kB / 1.098 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.7634, allocations: 120 kB / 1.098 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.7635, allocations: 90.23 kB / 1.098 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.7635, allocations: 32.31 kB / 1.098 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.7635, allocations: 3.938 kB / 1.098 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001303/0.7649, allocations: 0.7905 MB / 1.099 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.443e-05/0.7649, allocations: 53.59 kB / 1.099 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.7651, allocations: 198.6 kB / 1.099 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.7651, allocations: 30.77 kB / 1.099 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.7653, allocations: 161.9 kB / 1.099 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.576e-05/0.7653, allocations: 73.8 kB / 1.099 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.7654, allocations: 53.88 kB / 1.099 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.7656, allocations: 332.5 kB / 1.1 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.7658, allocations: 114.2 kB / 1.1 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.766, allocations: 169.2 kB / 1.1 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/0.7664, allocations: 301.7 kB / 1.1 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7664, allocations: 0.875 kB / 1.1 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008381/0.7673, allocations: 415.5 kB / 1.101 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.7673, allocations: 6.844 kB / 1.101 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.7673, allocations: 1.844 kB / 1.101 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004351/0.7678, allocations: 103.7 kB / 1.101 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.768, allocations: 52.36 kB / 1.101 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.7701, allocations: 1.868 MB / 1.103 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.7703, allocations: 20.41 kB / 1.103 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.7704, allocations: 12.31 kB / 1.103 GB, free: 10.93 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.000178/0.7706, allocations: 161.5 kB / 1.103 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.319e-05/0.7706, allocations: 16.72 kB / 1.103 GB, free: 10.78 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005734/0.7712, allocations: 300.5 kB / 1.103 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.7712, allocations: 2.156 kB / 1.103 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.7712, allocations: 4.594 kB / 1.103 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.7712, allocations: 5.438 kB / 1.103 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.7725, allocations: 0.7042 MB / 1.104 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.7725, allocations: 1.125 kB / 1.104 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.7728, allocations: 53.55 kB / 1.104 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.7728, allocations: 10.16 kB / 1.104 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.7729, allocations: 7.594 kB / 1.104 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.7729, allocations: 5.25 kB / 1.104 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.7729, allocations: 0.9375 kB / 1.104 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000704/0.7736, allocations: 0.5123 MB / 1.104 GB, free: 9.871 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.7737, allocations: 118.2 kB / 1.105 GB, free: 9.758 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.7738, allocations: 7.406 kB / 1.105 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.774, allocations: 14.97 kB / 1.105 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.774, allocations: 14.28 kB / 1.105 GB, free: 9.746 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.7741, allocations: 5.344 kB / 1.105 GB, free: 9.746 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001581/0.7742, allocations: 143.6 kB / 1.105 GB, free: 9.648 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7742, allocations: 0 / 1.105 GB, free: 9.648 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004175/0.7746, allocations: 65.88 kB / 1.105 GB, free: 9.641 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.0009957/0.7756, allocations: 1.066 MB / 1.106 GB, free: 8.805 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007908/0.7764, allocations: 428.3 kB / 1.106 GB, free: 8.586 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.7765, allocations: 5.312 kB / 1.106 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.7767, allocations: 124.8 kB / 1.106 GB, free: 8.539 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.7771, allocations: 43.33 kB / 1.106 GB, free: 8.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00409/0.7812, allocations: 2.886 MB / 1.109 GB, free: 6.57 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.7816, allocations: 0.7719 MB / 1.11 GB, free: 5.863 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001944/0.7818, allocations: 60.75 kB / 1.11 GB, free: 5.855 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.7819, allocations: 69.22 kB / 1.11 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of SimCode: time 3.31e-07/0.7819, allocations: 0 / 1.11 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.8097, allocations: 5.09 MB / 1.115 GB, free: 5.219 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.41/10.22, allocations: 13.5 kB / 1.115 GB, free: 5.207 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