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.005305/0.005305, allocations: 101.9 kB / 15.73 MB, free: 5.516 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.001341/0.00134, allocations: 196.5 kB / 16.68 MB, free: 5.445 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 14.89 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002516/0.002517, allocations: 299.5 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9868/0.9868, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002636/0.002636, allocations: 95.83 kB / 0.6809 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4148/0.4174, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004003/0.4215, allocations: 2.494 MB / 0.7683 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001336/0.4228, allocations: 0.7712 MB / 0.7691 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.615e-05/0.4229, allocations: 4 kB / 0.7691 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.4241, allocations: 0.5406 MB / 0.7696 GB, free: 12 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002722/0.4244, allocations: 99.59 kB / 0.7697 GB, free: 15.91 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.4247, allocations: 119.7 kB / 0.7698 GB, free: 15.79 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002571/0.4249, allocations: 195.3 kB / 0.77 GB, free: 15.61 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003392/0.4253, allocations: 158.1 kB / 0.7702 GB, free: 15.44 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.4254, allocations: 79.75 kB / 0.7702 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.4256, allocations: 99.58 kB / 0.7703 GB, free: 15.27 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.4257, allocations: 16 kB / 0.7703 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002002/0.4259, allocations: 107.8 kB / 0.7704 GB, free: 15.14 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.084e-05/0.426, allocations: 51.89 kB / 0.7705 GB, free: 15.09 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.965e-05/0.4261, allocations: 67.67 kB / 0.7706 GB, free: 15.03 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.4264, allocations: 232.3 kB / 0.7708 GB, free: 14.8 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4264, allocations: 4 kB / 0.7708 GB, free: 14.8 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.213e-06/0.4264, allocations: 0 / 0.7708 GB, free: 14.8 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.4264, allocations: 0 / 0.7708 GB, free: 14.8 MB / 0.545 GB 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.0006574/0.4271, allocations: 451 kB / 0.7712 GB, free: 14.31 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.4271, allocations: 16.03 kB / 0.7712 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.399e-05/0.4272, allocations: 46.73 kB / 0.7713 GB, free: 14.24 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003676/0.4276, allocations: 44.81 kB / 0.7713 GB, free: 14.2 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.4278, allocations: 220.1 kB / 0.7715 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.4279, allocations: 12.66 kB / 0.7715 GB, free: 13.93 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.4279, allocations: 12.36 kB / 0.7715 GB, free: 13.92 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003912/0.4283, allocations: 240 kB / 0.7718 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.4283, allocations: 3.938 kB / 0.7718 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.4283, allocations: 8 kB / 0.7718 GB, free: 13.65 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.274e-05/0.4284, allocations: 16.27 kB / 0.7718 GB, free: 13.64 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.4286, allocations: 140.7 kB / 0.7719 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.4298, allocations: 1.135 MB / 0.773 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.472e-05/0.4299, allocations: 42.56 kB / 0.7731 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.501e-05/0.4299, allocations: 20.88 kB / 0.7731 GB, free: 12.16 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.4299, allocations: 8 kB / 0.7731 GB, free: 12.15 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.43, allocations: 30.56 kB / 0.7731 GB, free: 12.11 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.193e-06/0.43, allocations: 0 / 0.7731 GB, free: 12.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0001923/0.4302, allocations: 73.58 kB / 0.7732 GB, free: 12.04 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.4302, allocations: 55.41 kB / 0.7733 GB, free: 11.97 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.4304, allocations: 175 kB / 0.7734 GB, free: 11.79 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.4304, allocations: 25.7 kB / 0.7735 GB, free: 11.76 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/0.4305, allocations: 143.7 kB / 0.7736 GB, free: 11.61 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.4305, allocations: 15.84 kB / 0.7736 GB, free: 11.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.326e-05/0.4306, allocations: 37.64 kB / 0.7736 GB, free: 11.55 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4307, allocations: 322.8 kB / 0.774 GB, free: 11.23 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.025e-05/0.4308, allocations: 32.78 kB / 0.774 GB, free: 11.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.26e-05/0.4309, allocations: 85.44 kB / 0.7741 GB, free: 11.08 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.4311, allocations: 125.3 kB / 0.7742 GB, free: 10.92 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4311, allocations: 0 / 0.7742 GB, free: 10.92 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000206/0.4313, allocations: 137.5 kB / 0.7743 GB, free: 10.78 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.4313, allocations: 4 kB / 0.7743 GB, free: 10.78 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.4313, allocations: 4 kB / 0.7743 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.4313, allocations: 7.938 kB / 0.7743 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.4314, allocations: 27.92 kB / 0.7744 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.4314, allocations: 4 kB / 0.7744 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.603e-05/0.4315, allocations: 19.84 kB / 0.7744 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.4315, allocations: 8 kB / 0.7744 GB, free: 10.71 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001102/0.4317, allocations: 122.5 kB / 0.7745 GB, free: 10.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.651e-05/0.4318, allocations: 93.61 kB / 0.7746 GB, free: 10.46 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001367/0.4319, allocations: 117.5 kB / 0.7747 GB, free: 10.31 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.956e-06/0.4319, allocations: 8 kB / 0.7747 GB, free: 10.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000193/0.4321, allocations: 133.3 kB / 0.7748 GB, free: 10.17 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.4321, allocations: 8 kB / 0.7749 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.4321, allocations: 4 kB / 0.7749 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-06/0.4321, allocations: 0 / 0.7749 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.925e-05/0.4322, allocations: 27.92 kB / 0.7749 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.4322, allocations: 8.25 kB / 0.7749 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.459e-05/0.4323, allocations: 15.95 kB / 0.7749 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.4323, allocations: 8 kB / 0.7749 GB, free: 10.1 MB / 0.545 GB 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 0.0001095/0.4325, allocations: 192.1 kB / 0.7751 GB, free: 9.902 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.4325, allocations: 7.953 kB / 0.7751 GB, free: 9.895 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.4325, allocations: 16.88 kB / 0.7751 GB, free: 9.875 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.4325, allocations: 3.984 kB / 0.7751 GB, free: 9.871 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.4325, allocations: 3.938 kB / 0.7751 GB, free: 9.867 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.4326, allocations: 0 / 0.7751 GB, free: 9.867 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004759/0.433, allocations: 485 kB / 0.7756 GB, free: 9.324 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4331, allocations: 4 kB / 0.7756 GB, free: 9.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.112e-05/0.4331, allocations: 4 kB / 0.7756 GB, free: 9.316 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.4331, allocations: 0 / 0.7756 GB, free: 9.316 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.4331, allocations: 4 kB / 0.7756 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4331, allocations: 0 / 0.7756 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4331, allocations: 4.125 kB / 0.7756 GB, free: 9.309 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001458/0.4333, allocations: 115.5 kB / 0.7757 GB, free: 9.168 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.433e-05/0.4333, allocations: 85.06 kB / 0.7758 GB, free: 9.066 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.4334, allocations: 8 kB / 0.7758 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.759e-05/0.4334, allocations: 7.984 kB / 0.7758 GB, free: 9.051 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.976e-05/0.4335, allocations: 4 kB / 0.7758 GB, free: 9.047 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.4335, allocations: 0 / 0.7758 GB, free: 9.047 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000108/0.4336, allocations: 125.8 kB / 0.7759 GB, free: 8.926 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4336, allocations: 0 / 0.7759 GB, free: 8.926 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003417/0.4339, allocations: 55.84 kB / 0.776 GB, free: 8.871 MB / 0.545 GB 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.0004364/0.4344, allocations: 0.65 MB / 0.7766 GB, free: 8.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002056/0.4346, allocations: 112.8 kB / 0.7767 GB, free: 8.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.4346, allocations: 0 / 0.7767 GB, free: 8.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.4346, allocations: 23.92 kB / 0.7768 GB, free: 8.047 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.4349, allocations: 19.2 kB / 0.7768 GB, free: 8.035 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.4367, allocations: 1.729 MB / 0.7785 GB, free: 6.145 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.4371, allocations: 0.724 MB / 0.7792 GB, free: 5.395 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.46e-05/0.4372, allocations: 32.59 kB / 0.7792 GB, free: 5.363 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.247e-05/0.4372, allocations: 39.42 kB / 0.7792 GB, free: 5.324 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4372, allocations: 0 / 0.7792 GB, free: 5.324 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.4594, allocations: 2.409 MB / 0.7816 GB, free: 3.059 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.53/7.99, allocations: 22.47 kB / 0.7816 GB, free: 3.039 MB / 0.545 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)