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.007541/0.007541, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.001762/0.001762, allocations: 186.9 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.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.408/2.408, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001334, allocations: 61.91 kB / 0.9504 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3332, allocations: 140.4 MB / 1.087 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005776/0.339, allocations: 3.073 MB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00309/0.3421, allocations: 1.722 MB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002572/0.3424, allocations: 4 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.3436, allocations: 338.7 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007241/0.3444, allocations: 215.1 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006039/0.345, allocations: 183.5 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004386/0.3454, allocations: 315 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.3459, allocations: 247.5 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.3461, allocations: 135.5 kB / 1.094 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003451/0.3465, allocations: 155.5 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.667e-05/0.3465, allocations: 24 kB / 1.094 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.347, allocations: 239.5 kB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.3471, allocations: 103.8 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.3473, allocations: 123.4 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005333/0.3478, allocations: 431.5 kB / 1.095 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3478, allocations: 0 / 1.095 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3478, allocations: 0 / 1.095 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.3478, allocations: 0 / 1.095 GB, free: 10.71 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.0009595/0.3488, allocations: 0.5381 MB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3488, allocations: 8.031 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.366e-05/0.3489, allocations: 62.73 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007606/0.3497, allocations: 92.55 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.35, allocations: 259.9 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.3501, allocations: 16.81 kB / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.251e-05/0.3502, allocations: 20.56 kB / 1.096 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.3507, allocations: 384.9 kB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.3507, allocations: 0 / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.3508, allocations: 23.91 kB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.266e-05/0.3509, allocations: 24.42 kB / 1.096 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004585/0.3513, allocations: 305.5 kB / 1.096 GB, free: 8.875 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.3531, allocations: 1.529 MB / 1.098 GB, free: 7.195 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.3535, allocations: 228.1 kB / 1.098 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.3537, allocations: 112.8 kB / 1.098 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.3538, allocations: 93.09 kB / 1.098 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.3539, allocations: 34.56 kB / 1.098 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 1.152e-06/0.3539, allocations: 0 / 1.098 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001247/0.3551, allocations: 0.7899 MB / 1.099 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3552, allocations: 51.41 kB / 1.099 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.3554, allocations: 195.2 kB / 1.099 GB, free: 5.598 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.3554, allocations: 29.7 kB / 1.099 GB, free: 5.562 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.269e-05/0.3555, allocations: 167.8 kB / 1.099 GB, free: 5.395 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/0.3556, allocations: 63.02 kB / 1.099 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.745e-05/0.3557, allocations: 65.67 kB / 1.099 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3558, allocations: 330.7 kB / 1.1 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.356, allocations: 115.9 kB / 1.1 GB, free: 4.816 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.3562, allocations: 177.8 kB / 1.1 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.3566, allocations: 290.4 kB / 1.1 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3566, allocations: 0 / 1.1 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007565/0.3573, allocations: 422.9 kB / 1.101 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.3574, allocations: 4 kB / 1.101 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.3574, allocations: 0 / 1.101 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004591/0.3578, allocations: 104.9 kB / 1.101 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.3581, allocations: 55.91 kB / 1.101 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.3602, allocations: 1.875 MB / 1.103 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.3605, allocations: 15.92 kB / 1.103 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.3605, allocations: 8 kB / 1.103 GB, free: 1.688 MB / 0.8575 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.0001778/0.3607, allocations: 165 kB / 1.103 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.804e-05/0.3607, allocations: 15.81 kB / 1.103 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004923/0.3612, allocations: 307.3 kB / 1.103 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3613, allocations: 4 kB / 1.103 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.3613, allocations: 0 / 1.103 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3613, allocations: 7.922 kB / 1.103 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008912/0.3622, allocations: 0.702 MB / 1.104 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3622, allocations: 4 kB / 1.104 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.3625, allocations: 59.89 kB / 1.104 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3625, allocations: 7.938 kB / 1.104 GB, free: 368 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.3625, allocations: 8.062 kB / 1.104 GB, free: 360 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3625, allocations: 4 kB / 1.104 GB, free: 356 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3625, allocations: 0 / 1.104 GB, free: 356 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005969/0.3631, allocations: 0.5027 MB / 1.105 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3633, allocations: 120.9 kB / 1.105 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.3633, allocations: 4 kB / 1.105 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.3635, allocations: 20.05 kB / 1.105 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.3635, allocations: 15.91 kB / 1.105 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.3635, allocations: 8 kB / 1.105 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001301/0.3637, allocations: 148 kB / 1.105 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3637, allocations: 0 / 1.105 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003622/0.3641, allocations: 64 kB / 1.105 GB, free: 15.43 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.0009242/0.365, allocations: 1.058 MB / 1.106 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007695/0.3658, allocations: 436.9 kB / 1.106 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.3658, allocations: 0 / 1.106 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.3659, allocations: 115.9 kB / 1.106 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/0.3663, allocations: 43.7 kB / 1.106 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003743/0.3701, allocations: 2.894 MB / 1.109 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.3705, allocations: 0.7636 MB / 1.11 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001649/0.3706, allocations: 57.91 kB / 1.11 GB, free: 9.867 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.3708, allocations: 67.41 kB / 1.11 GB, free: 9.805 MB / 0.8731 GB Notification: Performance of SimCode: time 7.22e-07/0.3708, allocations: 0 / 1.11 GB, free: 9.805 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0294/0.4002, allocations: 5.11 MB / 1.115 GB, free: 4.871 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.897/10.3, allocations: 10.22 kB / 1.115 GB, free: 4.863 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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