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 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.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.004527/0.004527, allocations: 101 kB / 15.73 MB, free: 6.469 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.001937/0.001937, allocations: 193.1 kB / 16.67 MB, free: 6.379 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.612/2.612, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 72.11 kB / 1.054 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2729, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006694/0.2797, allocations: 3.087 MB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004017/0.2837, allocations: 1.718 MB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002205/0.284, allocations: 4 kB / 1.212 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.2853, allocations: 328.6 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0007037/0.2861, allocations: 227.1 kB / 1.212 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006885/0.2868, allocations: 179.5 kB / 1.213 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005628/0.2873, allocations: 311 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005525/0.2879, allocations: 240.9 kB / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003122/0.2882, allocations: 139.5 kB / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000457/0.2887, allocations: 159.5 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.384e-05/0.2888, allocations: 20 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005865/0.2894, allocations: 251.5 kB / 1.214 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.2896, allocations: 95.78 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.2898, allocations: 127.4 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007433/0.2905, allocations: 418.7 kB / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2905, allocations: 0 / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2906, allocations: 0 / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.433e-05/0.2906, allocations: 0 / 1.214 GB, free: 2.867 MB / 0.9669 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.001333/0.2919, allocations: 0.5497 MB / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.292, allocations: 16.62 kB / 1.215 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.235e-05/0.2921, allocations: 58.72 kB / 1.215 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.2933, allocations: 92.55 kB / 1.215 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005035/0.2938, allocations: 257.5 kB / 1.215 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.2938, allocations: 20.73 kB / 1.215 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.294, allocations: 24.56 kB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008413/0.2948, allocations: 373 kB / 1.216 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.2949, allocations: 7.984 kB / 1.216 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.31e-05/0.2949, allocations: 11.94 kB / 1.216 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.2951, allocations: 32.36 kB / 1.216 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007192/0.2958, allocations: 309.4 kB / 1.216 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002448/0.2982, allocations: 1.521 MB / 1.218 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006044/0.2989, allocations: 230.4 kB / 1.218 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.2991, allocations: 116.8 kB / 1.218 GB, free: 15 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/0.2993, allocations: 85.09 kB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.2993, allocations: 38.56 kB / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.723e-06/0.2993, allocations: 0 / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.0018/0.3012, allocations: 0.7852 MB / 1.219 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.3012, allocations: 63.36 kB / 1.219 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.3015, allocations: 199.1 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.3015, allocations: 29.7 kB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.3017, allocations: 163.8 kB / 1.219 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.31e-05/0.3018, allocations: 63.11 kB / 1.219 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3019, allocations: 57.59 kB / 1.219 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3021, allocations: 330.8 kB / 1.22 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.3024, allocations: 111.9 kB / 1.22 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.3027, allocations: 181.8 kB / 1.22 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005632/0.3033, allocations: 298.5 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3033, allocations: 0 / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001061/0.3043, allocations: 422.4 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.3044, allocations: 4.188 kB / 1.221 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.3044, allocations: 8 kB / 1.221 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005277/0.3049, allocations: 92.77 kB / 1.221 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.3053, allocations: 55.89 kB / 1.221 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.308, allocations: 1.879 MB / 1.223 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.3083, allocations: 19.92 kB / 1.223 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.713e-05/0.3084, allocations: 12.19 kB / 1.223 GB, free: 9.824 MB / 0.9825 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.0002147/0.3086, allocations: 159.6 kB / 1.223 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.991e-05/0.3087, allocations: 19.81 kB / 1.223 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006803/0.3094, allocations: 301.3 kB / 1.223 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3094, allocations: 0 / 1.223 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.3094, allocations: 0 / 1.223 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.3094, allocations: 7.938 kB / 1.223 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.3107, allocations: 0.6965 MB / 1.224 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3107, allocations: 0 / 1.224 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004197/0.3111, allocations: 63.95 kB / 1.224 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.3112, allocations: 3.938 kB / 1.224 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.3112, allocations: 11.98 kB / 1.224 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.3112, allocations: 0 / 1.224 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3112, allocations: 0 / 1.224 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008407/0.3121, allocations: 0.5085 MB / 1.224 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.3122, allocations: 128.9 kB / 1.224 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.365e-05/0.3123, allocations: 4 kB / 1.224 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.3126, allocations: 11.98 kB / 1.224 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.3126, allocations: 15.92 kB / 1.224 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.3127, allocations: 8 kB / 1.224 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001768/0.3128, allocations: 148 kB / 1.225 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.794e-06/0.3129, allocations: 0 / 1.225 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005532/0.3134, allocations: 67.94 kB / 1.225 GB, free: 7.574 MB / 0.9825 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.001234/0.3147, allocations: 1.06 MB / 1.226 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009631/0.3156, allocations: 434.6 kB / 1.226 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3157, allocations: 0 / 1.226 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.3159, allocations: 125.3 kB / 1.226 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.3164, allocations: 23.98 kB / 1.226 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/0.3204, allocations: 2.891 MB / 1.229 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3207, allocations: 0.7714 MB / 1.23 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001587/0.3209, allocations: 57.91 kB / 1.23 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.321, allocations: 75.41 kB / 1.23 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.321, allocations: 0 / 1.23 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2063/0.5273, allocations: 5.169 MB / 1.235 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.48, allocations: 0 / 1.235 GB, free: 12.97 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=50 --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