Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_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.005672/0.005672, allocations: 101.2 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.001149/0.001149, allocations: 199.3 kB / 16.68 MB, free: 5.961 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.247/1.247, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.472/2.472, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 63.91 kB / 1.054 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.766/0.7673, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004035/0.7714, allocations: 2.507 MB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.7728, allocations: 0.7713 MB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.773, allocations: 7.938 kB / 1.21 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.7743, allocations: 0.5288 MB / 1.211 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003346/0.7746, allocations: 107.5 kB / 1.211 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003395/0.775, allocations: 111.7 kB / 1.211 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.7753, allocations: 187.4 kB / 1.211 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.7757, allocations: 166.1 kB / 1.212 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.7759, allocations: 91.61 kB / 1.212 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.7761, allocations: 87.72 kB / 1.212 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.7762, allocations: 12 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002226/0.7764, allocations: 119.7 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.441e-05/0.7765, allocations: 51.89 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.189e-05/0.7766, allocations: 79.61 kB / 1.212 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.7769, allocations: 221.6 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.7769, allocations: 0 / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.173e-06/0.7769, allocations: 0 / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.071e-05/0.7769, allocations: 0 / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006318/0.7776, allocations: 447.3 kB / 1.213 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.7776, allocations: 8.031 kB / 1.213 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.7777, allocations: 54.67 kB / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003658/0.778, allocations: 44.72 kB / 1.213 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.7783, allocations: 220.1 kB / 1.213 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.7783, allocations: 8.656 kB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.7784, allocations: 16.36 kB / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003509/0.7787, allocations: 227.1 kB / 1.213 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.7787, allocations: 4 kB / 1.213 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.7788, allocations: 11.94 kB / 1.213 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.7788, allocations: 12.27 kB / 1.213 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.779, allocations: 152.7 kB / 1.213 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.7802, allocations: 1.123 MB / 1.214 GB, free: 5.918 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.659e-05/0.7803, allocations: 34.56 kB / 1.214 GB, free: 5.875 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.809e-05/0.7803, allocations: 24.92 kB / 1.214 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.7803, allocations: 3.938 kB / 1.214 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.7804, allocations: 34.56 kB / 1.214 GB, free: 5.801 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.7804, allocations: 8 kB / 1.214 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0001986/0.7806, allocations: 77.45 kB / 1.215 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.7806, allocations: 51.41 kB / 1.215 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.7808, allocations: 178.9 kB / 1.215 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.7808, allocations: 25.7 kB / 1.215 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.953e-05/0.7809, allocations: 147.4 kB / 1.215 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.224e-05/0.7809, allocations: 11.81 kB / 1.215 GB, free: 5.273 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.469e-05/0.781, allocations: 37.64 kB / 1.215 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.7811, allocations: 322.8 kB / 1.215 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.446e-05/0.7811, allocations: 24.84 kB / 1.215 GB, free: 4.879 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.606e-05/0.7812, allocations: 85.44 kB / 1.215 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.7813, allocations: 129.2 kB / 1.216 GB, free: 4.602 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.7814, allocations: 0 / 1.216 GB, free: 4.602 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001957/0.7816, allocations: 133.3 kB / 1.216 GB, free: 4.465 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.7816, allocations: 8.312 kB / 1.216 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.7816, allocations: 8 kB / 1.216 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.7816, allocations: 11.92 kB / 1.216 GB, free: 4.438 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.7817, allocations: 20 kB / 1.216 GB, free: 4.418 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.7817, allocations: 3.938 kB / 1.216 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.402e-05/0.7818, allocations: 27.69 kB / 1.216 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.7818, allocations: 7.984 kB / 1.216 GB, free: 4.379 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.812e-05/0.7819, allocations: 120.1 kB / 1.216 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.552e-05/0.782, allocations: 97.36 kB / 1.216 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001159/0.7821, allocations: 113.3 kB / 1.216 GB, free: 3.984 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.242e-06/0.7821, allocations: 0 / 1.216 GB, free: 3.984 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001894/0.7823, allocations: 141.3 kB / 1.216 GB, free: 3.84 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.7824, allocations: 8 kB / 1.216 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.7824, allocations: 0 / 1.216 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.282e-06/0.7824, allocations: 7.938 kB / 1.216 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.76e-05/0.7825, allocations: 39.86 kB / 1.216 GB, free: 3.785 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.7825, allocations: 4 kB / 1.216 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.695e-05/0.7825, allocations: 4 kB / 1.216 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.7825, allocations: 4.312 kB / 1.216 GB, free: 3.773 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (14): * Single equations (assignments): 14 * 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 prepare postOptimizeDAE: time 0.0001028/0.7826, allocations: 192.2 kB / 1.216 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.7827, allocations: 11.81 kB / 1.216 GB, free: 3.566 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.326e-05/0.7827, allocations: 20.86 kB / 1.216 GB, free: 3.543 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.7827, allocations: 0 / 1.216 GB, free: 3.543 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.7827, allocations: 4 kB / 1.216 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.7827, allocations: 0 / 1.216 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004151/0.7832, allocations: 473.1 kB / 1.217 GB, free: 3.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.7832, allocations: 0 / 1.217 GB, free: 3.008 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.7832, allocations: 11.94 kB / 1.217 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.7832, allocations: 0 / 1.217 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.7832, allocations: 0 / 1.217 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.7833, allocations: 4 kB / 1.217 GB, free: 2.992 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7833, allocations: 288 / 1.217 GB, free: 2.992 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.7834, allocations: 123.6 kB / 1.217 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.694e-05/0.7835, allocations: 92.92 kB / 1.217 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.7835, allocations: 7.984 kB / 1.217 GB, free: 2.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.22e-05/0.7835, allocations: 3.938 kB / 1.217 GB, free: 2.723 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.305e-05/0.7835, allocations: 0 / 1.217 GB, free: 2.723 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.7835, allocations: 8 kB / 1.217 GB, free: 2.715 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.329e-05/0.7836, allocations: 124 kB / 1.217 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7836, allocations: 0 / 1.217 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003416/0.784, allocations: 55.84 kB / 1.217 GB, free: 2.539 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (4): * Single equations (assignments): 4 * 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.0003724/0.7844, allocations: 0.646 MB / 1.218 GB, free: 1.852 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001939/0.7846, allocations: 104.9 kB / 1.218 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.7846, allocations: 0 / 1.218 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.729e-05/0.7846, allocations: 28.17 kB / 1.218 GB, free: 1.723 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.7849, allocations: 17.86 kB / 1.218 GB, free: 1.707 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.7865, allocations: 1.738 MB / 1.22 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.7868, allocations: 0.7241 MB / 1.221 GB, free: 15.06 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.14e-05/0.7869, allocations: 28.62 kB / 1.221 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.643e-05/0.787, allocations: 31.42 kB / 1.221 GB, free: 15 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.787, allocations: 7.938 kB / 1.221 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.8049, allocations: 2.426 MB / 1.223 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.552/8.357, allocations: 9.125 kB / 1.223 GB, free: 12.68 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches