Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_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.001019/0.001019, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001094/0.001094, allocations: 192.1 kB / 16.13 MB, free: 6.668 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.282/1.282, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002012/0.002012, allocations: 277.7 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8975/0.8975, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 95.92 kB / 0.5946 GB, free: 28.37 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1431, allocations: 86.98 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004466/0.1476, allocations: 3.104 MB / 0.6826 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.1501, allocations: 1.739 MB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.566e-05/0.1502, allocations: 0.5938 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008553/0.151, allocations: 316.7 kB / 0.6846 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000372/0.1514, allocations: 200.1 kB / 0.6848 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.1518, allocations: 157.8 kB / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/0.1522, allocations: 470.8 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003896/0.1526, allocations: 237.8 kB / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.1527, allocations: 119.5 kB / 0.6857 GB, free: 10.74 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.153, allocations: 171.4 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.153, allocations: 12 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003871/0.1534, allocations: 287.4 kB / 0.6862 GB, free: 10.28 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.636e-05/0.1535, allocations: 95.77 kB / 0.6863 GB, free: 10.19 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.1537, allocations: 115.5 kB / 0.6864 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000419/0.1541, allocations: 430.6 kB / 0.6868 GB, free: 9.652 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1541, allocations: 4 kB / 0.6868 GB, free: 9.648 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.1541, allocations: 0 / 0.6868 GB, free: 9.648 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1541, allocations: 3.938 kB / 0.6868 GB, free: 9.645 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008227/0.1549, allocations: 0.5498 MB / 0.6873 GB, free: 9.047 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.155, allocations: 8.031 kB / 0.6873 GB, free: 9.039 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.058e-05/0.1551, allocations: 58.72 kB / 0.6874 GB, free: 8.973 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006694/0.1557, allocations: 92.55 kB / 0.6875 GB, free: 8.883 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.156, allocations: 269.4 kB / 0.6877 GB, free: 8.582 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.156, allocations: 16.81 kB / 0.6877 GB, free: 8.566 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-05/0.1561, allocations: 24.56 kB / 0.6878 GB, free: 8.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.1566, allocations: 369 kB / 0.6881 GB, free: 8.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.1567, allocations: 7.938 kB / 0.6881 GB, free: 8.152 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.1567, allocations: 11.98 kB / 0.6881 GB, free: 8.141 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.266e-05/0.1568, allocations: 32.42 kB / 0.6882 GB, free: 8.109 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.1572, allocations: 305.5 kB / 0.6885 GB, free: 7.812 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.1588, allocations: 1.533 MB / 0.69 GB, free: 6.125 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003953/0.1592, allocations: 233 kB / 0.6902 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.1593, allocations: 112.8 kB / 0.6903 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.1595, allocations: 89.09 kB / 0.6904 GB, free: 5.672 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.1595, allocations: 34.56 kB / 0.6904 GB, free: 5.629 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.253e-06/0.1595, allocations: 0 / 0.6904 GB, free: 5.629 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001121/0.1606, allocations: 0.7899 MB / 0.6912 GB, free: 4.789 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.1607, allocations: 55.41 kB / 0.6912 GB, free: 4.723 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.1608, allocations: 194.6 kB / 0.6914 GB, free: 4.523 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.1609, allocations: 25.7 kB / 0.6914 GB, free: 4.492 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.085e-05/0.1609, allocations: 159.9 kB / 0.6916 GB, free: 4.332 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.161, allocations: 74.94 kB / 0.6917 GB, free: 4.258 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.683e-05/0.1611, allocations: 57.69 kB / 0.6917 GB, free: 4.195 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.202e-05/0.1612, allocations: 330.8 kB / 0.692 GB, free: 3.863 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.1614, allocations: 119.9 kB / 0.6922 GB, free: 3.746 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.1616, allocations: 172 kB / 0.6923 GB, free: 3.559 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.1619, allocations: 294.8 kB / 0.6926 GB, free: 3.254 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1619, allocations: 4 kB / 0.6926 GB, free: 3.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006869/0.1626, allocations: 418 kB / 0.693 GB, free: 2.832 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.1626, allocations: 9.875 kB / 0.693 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1626, allocations: 4 kB / 0.693 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/0.163, allocations: 100.7 kB / 0.6931 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.1633, allocations: 43.97 kB / 0.6932 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.1649, allocations: 1.746 MB / 0.6949 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.1651, allocations: 11.98 kB / 0.6949 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.1652, allocations: 11.98 kB / 0.6949 GB, free: 0.7734 MB / 494.1 MB 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.0001333/0.1653, allocations: 163.3 kB / 0.695 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.937e-05/0.1654, allocations: 15.81 kB / 0.6951 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004278/0.1658, allocations: 303.3 kB / 0.6953 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1658, allocations: 11.88 kB / 0.6954 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.1658, allocations: 0 / 0.6954 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1658, allocations: 0 / 0.6954 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007914/0.1666, allocations: 0.7068 MB / 0.696 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1666, allocations: 0 / 0.696 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.1669, allocations: 55.89 kB / 0.6961 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.1669, allocations: 8.062 kB / 0.6961 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.167, allocations: 4 kB / 0.6961 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.167, allocations: 4 kB / 0.6961 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.167, allocations: 3.938 kB / 0.6961 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005428/0.1675, allocations: 0.5067 MB / 0.6966 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.119e-05/0.1676, allocations: 116.9 kB / 0.6967 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.1677, allocations: 8.062 kB / 0.6967 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.1678, allocations: 15.92 kB / 0.6967 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.1679, allocations: 15.92 kB / 0.6968 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.1679, allocations: 8 kB / 0.6968 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001111/0.168, allocations: 140.6 kB / 0.6969 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.168, allocations: 0 / 0.6969 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003366/0.1684, allocations: 71.98 kB / 0.697 GB, free: 14.52 MB / 0.4981 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.0008085/0.1692, allocations: 1.057 MB / 0.698 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006379/0.1698, allocations: 428.9 kB / 0.6984 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1698, allocations: 0 / 0.6984 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.17, allocations: 123.8 kB / 0.6985 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.1704, allocations: 36.56 kB / 0.6986 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003333/0.1737, allocations: 2.971 MB / 0.7015 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.174, allocations: 0.7791 MB / 0.7022 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001656/0.1742, allocations: 53.92 kB / 0.7023 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1743, allocations: 67.41 kB / 0.7023 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.1743, allocations: 4 kB / 0.7023 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01382/0.1881, allocations: 4.803 MB / 0.707 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.1884, allocations: 255.5 kB / 0.7073 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.832, allocations: 1.875 kB / 0.7073 GB, free: 3.953 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)