Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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.005086/0.005087, allocations: 99 kB / 15.73 MB, free: 6.441 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.001373/0.001373, allocations: 193.3 kB / 16.67 MB, free: 6.352 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.601/2.601, allocations: 482.6 MB / 0.755 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002445/0.002445, allocations: 75.83 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2871, allocations: 162.3 MB / 1.242 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004509/0.2916, allocations: 3.083 MB / 1.245 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002616/0.2943, allocations: 1.718 MB / 1.247 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.2944, allocations: 4 kB / 1.247 GB, free: 5 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009643/0.2954, allocations: 330.7 kB / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004951/0.296, allocations: 211.1 kB / 1.247 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004712/0.2964, allocations: 195 kB / 1.247 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003903/0.2968, allocations: 315 kB / 1.248 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.2972, allocations: 236.7 kB / 1.248 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.2974, allocations: 139.5 kB / 1.248 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003175/0.2978, allocations: 159.5 kB / 1.248 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.2978, allocations: 20 kB / 1.248 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004031/0.2982, allocations: 239.5 kB / 1.248 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.2984, allocations: 99.77 kB / 1.248 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.2985, allocations: 123.4 kB / 1.249 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005581/0.2991, allocations: 434.5 kB / 1.249 GB, free: 2.547 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2991, allocations: 0 / 1.249 GB, free: 2.547 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2991, allocations: 4 kB / 1.249 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.2991, allocations: 0 / 1.249 GB, free: 2.543 MB / 0.9981 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.0008677/0.3, allocations: 0.5513 MB / 1.249 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.3, allocations: 12.03 kB / 1.249 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.472e-05/0.3001, allocations: 58.72 kB / 1.25 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006687/0.3007, allocations: 96.64 kB / 1.25 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002958/0.3011, allocations: 264 kB / 1.25 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.3011, allocations: 12.81 kB / 1.25 GB, free: 1.465 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-05/0.3012, allocations: 24.56 kB / 1.25 GB, free: 1.441 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005349/0.3017, allocations: 373 kB / 1.25 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3017, allocations: 3.938 kB / 1.25 GB, free: 1.051 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.3018, allocations: 12 kB / 1.25 GB, free: 1.039 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.071e-05/0.3019, allocations: 32.36 kB / 1.25 GB, free: 1.004 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004454/0.3023, allocations: 305.5 kB / 1.251 GB, free: 0.707 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4525/0.7548, allocations: 1.522 MB / 1.252 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004043/0.7553, allocations: 231.8 kB / 1.252 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.7554, allocations: 115 kB / 1.252 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.7555, allocations: 87.61 kB / 1.253 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.7556, allocations: 33.31 kB / 1.253 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=18): time 1.883e-06/0.7556, allocations: 4.844 kB / 1.253 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.001082/0.7567, allocations: 0.7971 MB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/0.7567, allocations: 60.72 kB / 1.253 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.7569, allocations: 196.7 kB / 1.254 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.7569, allocations: 30.27 kB / 1.254 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.364e-05/0.757, allocations: 164.1 kB / 1.254 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.757, allocations: 72.55 kB / 1.254 GB, free: 13.44 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.774e-05/0.7571, allocations: 57.41 kB / 1.254 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.323e-05/0.7571, allocations: 327.8 kB / 1.254 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.7573, allocations: 116.7 kB / 1.254 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.7575, allocations: 167.4 kB / 1.254 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003308/0.7578, allocations: 304.9 kB / 1.255 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7578, allocations: 0.9375 kB / 1.255 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006775/0.7585, allocations: 422.7 kB / 1.255 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.7585, allocations: 6.156 kB / 1.255 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.7586, allocations: 1.844 kB / 1.255 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003757/0.7589, allocations: 99.67 kB / 1.255 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.7592, allocations: 51.22 kB / 1.255 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.7607, allocations: 1.88 MB / 1.257 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.7609, allocations: 18.95 kB / 1.257 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.7609, allocations: 13.16 kB / 1.257 GB, free: 11.11 MB / 0.9981 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.00012/0.761, allocations: 155.8 kB / 1.257 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.555e-05/0.7611, allocations: 18.3 kB / 1.257 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004446/0.7615, allocations: 301 kB / 1.258 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.7616, allocations: 2.938 kB / 1.258 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.7616, allocations: 0 / 1.258 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.7616, allocations: 1.891 kB / 1.258 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000763/0.7623, allocations: 0.713 MB / 1.258 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.7623, allocations: 1.641 kB / 1.258 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.7626, allocations: 65.66 kB / 1.258 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.7626, allocations: 1.844 kB / 1.258 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.7627, allocations: 3.094 kB / 1.258 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.7627, allocations: 3.859 kB / 1.258 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.7627, allocations: 0.9375 kB / 1.258 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005127/0.7632, allocations: 0.5161 MB / 1.259 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.603e-05/0.7633, allocations: 119.3 kB / 1.259 GB, free: 9.953 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.7633, allocations: 7.344 kB / 1.259 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.7635, allocations: 9.781 kB / 1.259 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.7635, allocations: 17.38 kB / 1.259 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.7635, allocations: 4.969 kB / 1.259 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001046/0.7637, allocations: 146.7 kB / 1.259 GB, free: 9.844 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7637, allocations: 1.062 kB / 1.259 GB, free: 9.844 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003546/0.764, allocations: 69.72 kB / 1.259 GB, free: 9.832 MB / 0.9981 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.0006995/0.7647, allocations: 1.063 MB / 1.26 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006524/0.7654, allocations: 433.6 kB / 1.261 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7654, allocations: 0 / 1.261 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.7656, allocations: 121.8 kB / 1.261 GB, free: 8.746 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.7659, allocations: 42.47 kB / 1.261 GB, free: 8.727 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.7689, allocations: 2.891 MB / 1.264 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.7691, allocations: 0.7764 MB / 1.264 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001784/0.7693, allocations: 65.09 kB / 1.265 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.7694, allocations: 63.66 kB / 1.265 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of SimCode: time 3.31e-07/0.7694, allocations: 0.75 kB / 1.265 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.75/3.519, allocations: 5.101 MB / 1.27 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.64/26.15, allocations: 15.34 kB / 1.27 GB, free: 5.441 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches