Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_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.001436/0.001436, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 286.6 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9251/0.9251, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001814, allocations: 92.94 kB / 0.5953 GB, free: 27.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1768, allocations: 86.99 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00402/0.1808, allocations: 2.493 MB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1821, allocations: 0.7789 MB / 0.6835 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1822, allocations: 4 kB / 0.6835 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.1833, allocations: 0.5258 MB / 0.684 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.1836, allocations: 103.5 kB / 0.6841 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.1839, allocations: 107.7 kB / 0.6842 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002181/0.1841, allocations: 195.4 kB / 0.6844 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.1844, allocations: 174 kB / 0.6846 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.52e-05/0.1845, allocations: 79.7 kB / 0.6846 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1847, allocations: 87.72 kB / 0.6847 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.1848, allocations: 16 kB / 0.6847 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001906/0.185, allocations: 111.7 kB / 0.6848 GB, free: 11.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.901e-05/0.185, allocations: 55.88 kB / 0.6849 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.583e-05/0.1851, allocations: 79.59 kB / 0.685 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002515/0.1854, allocations: 219.3 kB / 0.6852 GB, free: 11.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1854, allocations: 0 / 0.6852 GB, free: 11.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1854, allocations: 0 / 0.6852 GB, free: 11.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1854, allocations: 0 / 0.6852 GB, free: 11.57 MB / 494.1 MB 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.0005272/0.1859, allocations: 447.3 kB / 0.6856 GB, free: 11.08 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.186, allocations: 8.031 kB / 0.6856 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.186, allocations: 50.67 kB / 0.6857 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003535/0.1864, allocations: 48.7 kB / 0.6857 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.1866, allocations: 220.1 kB / 0.6859 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1866, allocations: 8.656 kB / 0.6859 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.1867, allocations: 16.38 kB / 0.6859 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.187, allocations: 223.1 kB / 0.6861 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.187, allocations: 7.938 kB / 0.6862 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.187, allocations: 8 kB / 0.6862 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/0.1871, allocations: 24.25 kB / 0.6862 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.1873, allocations: 140.7 kB / 0.6863 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009427/0.1882, allocations: 1.127 MB / 0.6874 GB, free: 9.016 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.26e-05/0.1883, allocations: 42.56 kB / 0.6875 GB, free: 8.965 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.457e-05/0.1883, allocations: 16.95 kB / 0.6875 GB, free: 8.945 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.1884, allocations: 3.984 kB / 0.6875 GB, free: 8.941 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.1884, allocations: 34.56 kB / 0.6875 GB, free: 8.898 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 2.615e-06/0.1884, allocations: 0 / 0.6875 GB, free: 8.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001734/0.1886, allocations: 81.41 kB / 0.6876 GB, free: 8.812 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.1886, allocations: 55.41 kB / 0.6876 GB, free: 8.746 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.1888, allocations: 182.4 kB / 0.6878 GB, free: 8.562 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.1888, allocations: 25.7 kB / 0.6878 GB, free: 8.531 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.207e-05/0.1889, allocations: 139.4 kB / 0.688 GB, free: 8.391 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.097e-05/0.1889, allocations: 11.81 kB / 0.688 GB, free: 8.379 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.1889, allocations: 33.7 kB / 0.688 GB, free: 8.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.059e-05/0.189, allocations: 322.8 kB / 0.6883 GB, free: 8.016 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.752e-05/0.1891, allocations: 28.86 kB / 0.6884 GB, free: 7.984 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.126e-05/0.1891, allocations: 89.42 kB / 0.6884 GB, free: 7.863 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.1893, allocations: 125.2 kB / 0.6886 GB, free: 7.707 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1893, allocations: 0 / 0.6886 GB, free: 7.707 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001854/0.1895, allocations: 137.6 kB / 0.6887 GB, free: 7.566 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.1895, allocations: 4 kB / 0.6887 GB, free: 7.562 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.1895, allocations: 4 kB / 0.6887 GB, free: 7.559 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1895, allocations: 7.938 kB / 0.6887 GB, free: 7.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.1896, allocations: 23.98 kB / 0.6887 GB, free: 7.527 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1896, allocations: 7.938 kB / 0.6887 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.784e-05/0.1897, allocations: 15.84 kB / 0.6888 GB, free: 7.504 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.1897, allocations: 8 kB / 0.6888 GB, free: 7.496 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.826e-05/0.1898, allocations: 124.7 kB / 0.6889 GB, free: 7.371 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.815e-05/0.1899, allocations: 89.47 kB / 0.689 GB, free: 7.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000118/0.19, allocations: 117.3 kB / 0.6891 GB, free: 7.102 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.19, allocations: 4 kB / 0.6891 GB, free: 7.098 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001779/0.1902, allocations: 141.2 kB / 0.6892 GB, free: 6.953 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.782e-06/0.1902, allocations: 4 kB / 0.6892 GB, free: 6.949 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.1902, allocations: 4 kB / 0.6892 GB, free: 6.945 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-06/0.1903, allocations: 4.281 kB / 0.6892 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.44e-05/0.1903, allocations: 27.88 kB / 0.6893 GB, free: 6.914 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1903, allocations: 3.984 kB / 0.6893 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.825e-05/0.1904, allocations: 16.19 kB / 0.6893 GB, free: 6.895 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.1904, allocations: 12 kB / 0.6893 GB, free: 6.883 MB / 494.1 MB 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 7.974e-05/0.1905, allocations: 188.9 kB / 0.6895 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/0.1905, allocations: 11.89 kB / 0.6895 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.815e-05/0.1906, allocations: 16.88 kB / 0.6895 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1906, allocations: 0 / 0.6895 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1906, allocations: 0 / 0.6895 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1906, allocations: 3.984 kB / 0.6895 GB, free: 6.656 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003778/0.191, allocations: 473.1 kB / 0.6899 GB, free: 6.125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.191, allocations: 4 kB / 0.6899 GB, free: 6.121 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.175e-05/0.191, allocations: 7.938 kB / 0.69 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.191, allocations: 4 kB / 0.69 GB, free: 6.109 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.191, allocations: 4 kB / 0.69 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1911, allocations: 0 / 0.69 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1911, allocations: 0 / 0.69 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001046/0.1912, allocations: 119.6 kB / 0.6901 GB, free: 5.961 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.1912, allocations: 100.9 kB / 0.6902 GB, free: 5.844 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.1913, allocations: 0 / 0.6902 GB, free: 5.844 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.311e-05/0.1913, allocations: 0 / 0.6902 GB, free: 5.844 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.1913, allocations: 11.98 kB / 0.6902 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1913, allocations: 0 / 0.6902 GB, free: 5.832 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.316e-05/0.1914, allocations: 128.7 kB / 0.6903 GB, free: 5.707 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1914, allocations: 0 / 0.6903 GB, free: 5.707 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003279/0.1917, allocations: 51.84 kB / 0.6904 GB, free: 5.656 MB / 494.1 MB 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.0003106/0.1921, allocations: 0.646 MB / 0.691 GB, free: 4.969 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001768/0.1922, allocations: 104.6 kB / 0.6911 GB, free: 4.867 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1923, allocations: 8.375 kB / 0.6911 GB, free: 4.859 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.197e-05/0.1923, allocations: 16 kB / 0.6911 GB, free: 4.844 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.1925, allocations: 25.14 kB / 0.6911 GB, free: 4.824 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.194, allocations: 1.753 MB / 0.6928 GB, free: 2.914 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.1942, allocations: 0.728 MB / 0.6936 GB, free: 2.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.33e-05/0.1943, allocations: 28.62 kB / 0.6936 GB, free: 2.133 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.123e-05/0.1944, allocations: 35.42 kB / 0.6936 GB, free: 2.098 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1944, allocations: 0 / 0.6936 GB, free: 2.098 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.2125, allocations: 2.369 MB / 0.6959 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.86/7.073, allocations: 12.48 kB / 0.6959 GB, free: 15.85 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.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 BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)