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: translateModel(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 101.7 kB / 16.35 MB, free: 5.875 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.001151/0.001151, allocations: 196 kB / 17.3 MB, free: 5.516 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 / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002091/0.002091, allocations: 289.7 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8943/0.8943, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 94.55 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1689, allocations: 86.98 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004422/0.1733, allocations: 3.072 MB / 0.6846 GB, free: 4.359 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002532/0.1759, allocations: 1.729 MB / 0.6863 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.176, allocations: 4 kB / 0.6863 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009701/0.177, allocations: 326.7 kB / 0.6866 GB, free: 2.297 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004309/0.1774, allocations: 219.1 kB / 0.6868 GB, free: 2.082 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.1778, allocations: 175.5 kB / 0.687 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.1782, allocations: 323 kB / 0.6873 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003555/0.1785, allocations: 236.7 kB / 0.6875 GB, free: 1.359 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.1787, allocations: 131.6 kB / 0.6876 GB, free: 1.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002815/0.179, allocations: 163.4 kB / 0.6878 GB, free: 1.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.179, allocations: 20 kB / 0.6878 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000346/0.1794, allocations: 243.5 kB / 0.6881 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.1795, allocations: 107.7 kB / 0.6882 GB, free: 0.707 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.1797, allocations: 119.5 kB / 0.6883 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004369/0.1801, allocations: 422.7 kB / 0.6887 GB, free: 180 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1801, allocations: 3.938 kB / 0.6887 GB, free: 176 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1801, allocations: 0 / 0.6887 GB, free: 176 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.1801, allocations: 0 / 0.6887 GB, free: 176 kB / 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.2371/0.4172, allocations: 0.5444 MB / 0.6892 GB, free: 18.42 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.4173, allocations: 10.94 kB / 0.6892 GB, free: 18.42 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008513/0.4181, allocations: 91.75 kB / 0.6893 GB, free: 18.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.4185, allocations: 258.1 kB / 0.6896 GB, free: 18.2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.4185, allocations: 19.09 kB / 0.6896 GB, free: 18.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.764e-05/0.4186, allocations: 28.78 kB / 0.6896 GB, free: 18.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005472/0.4192, allocations: 374.1 kB / 0.69 GB, free: 18.12 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4192, allocations: 5.531 kB / 0.69 GB, free: 18.12 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.4192, allocations: 9.062 kB / 0.69 GB, free: 18.12 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-05/0.4193, allocations: 28.5 kB / 0.69 GB, free: 18.12 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.4198, allocations: 308.6 kB / 0.6903 GB, free: 18.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.4214, allocations: 1.521 MB / 0.6918 GB, free: 16.97 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004177/0.4218, allocations: 235.1 kB / 0.692 GB, free: 16.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.422, allocations: 120.3 kB / 0.6921 GB, free: 16.83 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/0.4221, allocations: 86.83 kB / 0.6922 GB, free: 16.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.4221, allocations: 33.7 kB / 0.6922 GB, free: 16.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.813e-06/0.4221, allocations: 1.031 kB / 0.6922 GB, free: 16.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001157/0.4233, allocations: 0.8011 MB / 0.693 GB, free: 16.21 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.4233, allocations: 54.67 kB / 0.6931 GB, free: 16.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.4235, allocations: 187.2 kB / 0.6932 GB, free: 16.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.4236, allocations: 32.08 kB / 0.6933 GB, free: 15.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.587e-05/0.4236, allocations: 156.6 kB / 0.6934 GB, free: 15.84 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.985e-05/0.4237, allocations: 67.22 kB / 0.6935 GB, free: 15.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.4238, allocations: 58.7 kB / 0.6935 GB, free: 15.76 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.805e-05/0.4238, allocations: 327.5 kB / 0.6939 GB, free: 15.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.424, allocations: 117.8 kB / 0.694 GB, free: 15.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.4242, allocations: 171.9 kB / 0.6941 GB, free: 15.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003526/0.4246, allocations: 303.9 kB / 0.6944 GB, free: 15.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4246, allocations: 1.094 kB / 0.6944 GB, free: 15.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000709/0.4253, allocations: 413.6 kB / 0.6948 GB, free: 14.97 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4253, allocations: 10.59 kB / 0.6948 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4253, allocations: 1.969 kB / 0.6948 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003961/0.4257, allocations: 104.2 kB / 0.6949 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.426, allocations: 47.31 kB / 0.695 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.4276, allocations: 1.881 MB / 0.6968 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.4278, allocations: 20.19 kB / 0.6968 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.4278, allocations: 16.47 kB / 0.6968 GB, free: 13.36 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.0001264/0.4279, allocations: 156.5 kB / 0.697 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.428, allocations: 16.97 kB / 0.697 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004505/0.4285, allocations: 302.6 kB / 0.6973 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4285, allocations: 2.781 kB / 0.6973 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.4285, allocations: 0 / 0.6973 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.4285, allocations: 4.688 kB / 0.6973 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008386/0.4293, allocations: 0.704 MB / 0.698 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4293, allocations: 0.875 kB / 0.698 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002964/0.4296, allocations: 58.89 kB / 0.6981 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4297, allocations: 1.406 kB / 0.6981 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.4297, allocations: 6.969 kB / 0.6981 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4297, allocations: 8.672 kB / 0.6981 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4297, allocations: 1.031 kB / 0.6981 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005486/0.4303, allocations: 0.5211 MB / 0.6986 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.4304, allocations: 114.2 kB / 0.6987 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.4304, allocations: 11.3 kB / 0.6987 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.4306, allocations: 10.3 kB / 0.6987 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.4306, allocations: 18.69 kB / 0.6987 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.4307, allocations: 5.406 kB / 0.6987 GB, free: 12.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.4308, allocations: 146.9 kB / 0.6989 GB, free: 12.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4308, allocations: 0 / 0.6989 GB, free: 12.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.4311, allocations: 66.69 kB / 0.6989 GB, free: 12.09 MB / 494.1 MB 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.0001231/0.4313, allocations: 105.7 kB / 0.699 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007042/0.432, allocations: 429.3 kB / 0.6994 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.432, allocations: 1.094 kB / 0.6994 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.4322, allocations: 124.3 kB / 0.6996 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.4325, allocations: 35.53 kB / 0.6996 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.4336, allocations: 0.6176 MB / 0.7002 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.4338, allocations: 0.7775 MB / 0.701 GB, free: 10.65 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.4339, allocations: 57.28 kB / 0.701 GB, free: 10.65 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.517e-05/0.434, allocations: 26.98 kB / 0.701 GB, free: 10.63 MB / 494.1 MB Notification: Performance of SimCode: time 2.9e-07/0.434, allocations: 3.625 kB / 0.701 GB, free: 10.63 MB / 494.1 MB Notification: Performance of Templates: time 0.006469/0.4405, allocations: 2.784 MB / 0.7038 GB, free: 10.47 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)