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.004659/0.004659, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001248/0.001249, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002467/0.002467, allocations: 298 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.055/1.055, allocations: 178.6 MB / 0.5074 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002642/0.002642, allocations: 91.84 kB / 0.6943 GB, free: 3.625 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4586, allocations: 89.15 MB / 0.7813 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004963/0.4636, allocations: 3.07 MB / 0.7843 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003005/0.4667, allocations: 1.721 MB / 0.786 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.4668, allocations: 4.094 kB / 0.786 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.4679, allocations: 334.8 kB / 0.7863 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005572/0.4685, allocations: 210.5 kB / 0.7865 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005356/0.469, allocations: 182 kB / 0.7867 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000408/0.4694, allocations: 318 kB / 0.787 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.4699, allocations: 239.6 kB / 0.7872 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.4701, allocations: 133.8 kB / 0.7874 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.4704, allocations: 165.9 kB / 0.7875 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.03e-05/0.4705, allocations: 21.56 kB / 0.7876 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004434/0.4709, allocations: 236.9 kB / 0.7878 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.4711, allocations: 105.8 kB / 0.7879 GB, free: 10 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.4712, allocations: 121.6 kB / 0.788 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006193/0.4718, allocations: 427.6 kB / 0.7884 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4719, allocations: 4.609 kB / 0.7884 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4719, allocations: 1.531 kB / 0.7884 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.4719, allocations: 0 / 0.7884 GB, free: 9.789 MB / 0.5606 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.001037/0.4729, allocations: 0.5528 MB / 0.7889 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.473, allocations: 10.14 kB / 0.789 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.721e-05/0.4731, allocations: 61.62 kB / 0.789 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007453/0.4738, allocations: 96.78 kB / 0.7891 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.4742, allocations: 257.6 kB / 0.7894 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.4742, allocations: 17.34 kB / 0.7894 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.4743, allocations: 33.92 kB / 0.7894 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006806/0.475, allocations: 372.2 kB / 0.7898 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.4751, allocations: 9 kB / 0.7898 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.4751, allocations: 10.59 kB / 0.7898 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.562e-05/0.4752, allocations: 27.27 kB / 0.7898 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005155/0.4757, allocations: 308.5 kB / 0.7901 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.4776, allocations: 1.521 MB / 0.7916 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004524/0.4781, allocations: 232.3 kB / 0.7918 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.4783, allocations: 114.7 kB / 0.7919 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/0.4784, allocations: 90.19 kB / 0.792 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.4785, allocations: 40.64 kB / 0.792 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.452e-06/0.4785, allocations: 0 / 0.792 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19): time 0.001335/0.4798, allocations: 0.8 MB / 0.7928 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.4799, allocations: 54.25 kB / 0.7929 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.4801, allocations: 199.5 kB / 0.7931 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.4801, allocations: 30.83 kB / 0.7931 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.4802, allocations: 165.8 kB / 0.7932 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6e-05/0.4803, allocations: 66.03 kB / 0.7933 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.4804, allocations: 61.91 kB / 0.7934 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4806, allocations: 332.8 kB / 0.7937 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.4808, allocations: 114.3 kB / 0.7938 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.481, allocations: 168.8 kB / 0.794 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004151/0.4814, allocations: 293.6 kB / 0.7942 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4814, allocations: 0.5625 kB / 0.7942 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007815/0.4822, allocations: 417.5 kB / 0.7946 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.4822, allocations: 6.75 kB / 0.7946 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.4823, allocations: 6.906 kB / 0.7946 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004482/0.4827, allocations: 103.8 kB / 0.7947 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.483, allocations: 51.95 kB / 0.7948 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/0.4852, allocations: 1.872 MB / 0.7966 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.4854, allocations: 28.05 kB / 0.7967 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.4855, allocations: 13.06 kB / 0.7967 GB, free: 3.734 MB / 0.5606 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.0001894/0.4857, allocations: 152.1 kB / 0.7968 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.28e-05/0.4857, allocations: 20.5 kB / 0.7968 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005104/0.4862, allocations: 303.1 kB / 0.7971 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.4862, allocations: 2.844 kB / 0.7971 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.4863, allocations: 4 kB / 0.7971 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4863, allocations: 6.281 kB / 0.7971 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.4873, allocations: 0.7041 MB / 0.7978 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4873, allocations: 0 / 0.7978 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.4876, allocations: 58.08 kB / 0.7979 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.4877, allocations: 6.312 kB / 0.7979 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.4877, allocations: 10.41 kB / 0.7979 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4877, allocations: 0.9375 kB / 0.7979 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4877, allocations: 9.234 kB / 0.7979 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00064/0.4883, allocations: 0.5041 MB / 0.7984 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.4885, allocations: 123.8 kB / 0.7985 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.4885, allocations: 6.5 kB / 0.7985 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.4887, allocations: 14.45 kB / 0.7985 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.4887, allocations: 17.78 kB / 0.7985 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.4888, allocations: 5.062 kB / 0.7986 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001425/0.4889, allocations: 150.9 kB / 0.7987 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4889, allocations: 0 / 0.7987 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003605/0.4893, allocations: 62.59 kB / 0.7988 GB, free: 2.312 MB / 0.5606 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.0009948/0.4903, allocations: 1.057 MB / 0.7998 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007648/0.4911, allocations: 430.3 kB / 0.8002 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.4911, allocations: 4.438 kB / 0.8002 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.4913, allocations: 121.8 kB / 0.8003 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.4916, allocations: 44.78 kB / 0.8004 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003913/0.4956, allocations: 2.899 MB / 0.8032 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.496, allocations: 0.7697 MB / 0.8039 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001652/0.4962, allocations: 60.41 kB / 0.804 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.4963, allocations: 66.44 kB / 0.8041 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of SimCode: time 2.074e-06/0.4963, allocations: 0.9688 kB / 0.8041 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03276/0.5291, allocations: 5.111 MB / 0.8091 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.666/10.19, allocations: 15.23 kB / 0.8091 GB, free: 11.55 MB / 0.5762 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.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_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)