Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="IBPSA_latest_IBPSA_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.001083/0.001083, allocations: 99.83 kB / 16.27 MB, free: 5.957 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.00113/0.00113, allocations: 186.9 kB / 17.19 MB, free: 5.594 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.29/1.29, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7377/0.7377, allocations: 122.9 MB / 413.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 59.91 kB / 0.4912 GB, free: 7.312 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3345, allocations: 77.92 MB / 0.5673 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004165/0.3387, allocations: 3.064 MB / 0.5703 GB, free: 30.63 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.3411, allocations: 1.723 MB / 0.572 GB, free: 29.47 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.3412, allocations: 7.875 kB / 0.572 GB, free: 29.47 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009017/0.3422, allocations: 328.4 kB / 0.5723 GB, free: 29.28 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004745/0.3427, allocations: 211 kB / 0.5725 GB, free: 29.17 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.3431, allocations: 181 kB / 0.5727 GB, free: 29.08 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003041/0.3434, allocations: 313.9 kB / 0.573 GB, free: 28.95 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003479/0.3438, allocations: 244.3 kB / 0.5732 GB, free: 28.87 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.344, allocations: 140.4 kB / 0.5733 GB, free: 28.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.3442, allocations: 156.4 kB / 0.5735 GB, free: 28.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.3443, allocations: 24.88 kB / 0.5735 GB, free: 28.74 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003993/0.3447, allocations: 238.4 kB / 0.5737 GB, free: 28.67 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.3448, allocations: 105.4 kB / 0.5738 GB, free: 28.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3449, allocations: 126 kB / 0.5739 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005354/0.3455, allocations: 423 kB / 0.5744 GB, free: 28.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3455, allocations: 0 / 0.5744 GB, free: 28.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3455, allocations: 0 / 0.5744 GB, free: 28.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.3455, allocations: 1.844 kB / 0.5744 GB, free: 28.41 MB / 446.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.0007798/0.3463, allocations: 0.5434 MB / 0.5749 GB, free: 27.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.3464, allocations: 11.16 kB / 0.5749 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.736e-05/0.3464, allocations: 65.92 kB / 0.575 GB, free: 27.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006905/0.3471, allocations: 92.86 kB / 0.575 GB, free: 27.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.3474, allocations: 259.3 kB / 0.5753 GB, free: 27.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.3474, allocations: 17.28 kB / 0.5753 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.959e-05/0.3475, allocations: 25.06 kB / 0.5753 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.348, allocations: 377.4 kB / 0.5757 GB, free: 27.44 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.348, allocations: 0 / 0.5757 GB, free: 27.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.3481, allocations: 18.89 kB / 0.5757 GB, free: 27.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.764e-05/0.3482, allocations: 29.58 kB / 0.5757 GB, free: 27.42 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005009/0.3487, allocations: 310.8 kB / 0.576 GB, free: 27.31 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.3503, allocations: 1.53 MB / 0.5775 GB, free: 26.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.3507, allocations: 225 kB / 0.5777 GB, free: 25.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.3508, allocations: 114.6 kB / 0.5779 GB, free: 25.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.351, allocations: 87.62 kB / 0.5779 GB, free: 25.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.543e-05/0.351, allocations: 37.19 kB / 0.578 GB, free: 25.78 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.893e-06/0.351, allocations: 0 / 0.578 GB, free: 25.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001099/0.3521, allocations: 0.7873 MB / 0.5787 GB, free: 25.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.137e-05/0.3521, allocations: 58.23 kB / 0.5788 GB, free: 25.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.3523, allocations: 203.9 kB / 0.579 GB, free: 25.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.3523, allocations: 27.45 kB / 0.579 GB, free: 25.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.449e-05/0.3524, allocations: 161.3 kB / 0.5792 GB, free: 24.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.3524, allocations: 67.58 kB / 0.5792 GB, free: 24.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-05/0.3525, allocations: 61.23 kB / 0.5793 GB, free: 24.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.609e-05/0.3526, allocations: 329.9 kB / 0.5796 GB, free: 24.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.3528, allocations: 114.8 kB / 0.5797 GB, free: 24.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.353, allocations: 173.7 kB / 0.5799 GB, free: 24.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003553/0.3533, allocations: 296.8 kB / 0.5802 GB, free: 24.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3533, allocations: 0 / 0.5802 GB, free: 24.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006784/0.354, allocations: 419.4 kB / 0.5806 GB, free: 24.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.354, allocations: 6.25 kB / 0.5806 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.3541, allocations: 1.375 kB / 0.5806 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004146/0.3545, allocations: 97.92 kB / 0.5807 GB, free: 24.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.3547, allocations: 55.58 kB / 0.5807 GB, free: 24.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.3564, allocations: 1.877 MB / 0.5826 GB, free: 22.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/0.3566, allocations: 20.16 kB / 0.5826 GB, free: 22.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.3567, allocations: 11.53 kB / 0.5826 GB, free: 22.43 MB / 446.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.0001552/0.3568, allocations: 155.6 kB / 0.5827 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-05/0.3569, allocations: 16.47 kB / 0.5828 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004386/0.3573, allocations: 298.5 kB / 0.583 GB, free: 22.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3574, allocations: 2.219 kB / 0.583 GB, free: 22.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.3574, allocations: 0 / 0.583 GB, free: 22.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3574, allocations: 11.17 kB / 0.583 GB, free: 22.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007513/0.3581, allocations: 0.6979 MB / 0.5837 GB, free: 21.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3581, allocations: 5.906 kB / 0.5837 GB, free: 21.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.3584, allocations: 55.8 kB / 0.5838 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.3584, allocations: 5.125 kB / 0.5838 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.3585, allocations: 6.594 kB / 0.5838 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.3585, allocations: 1.25 kB / 0.5838 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3585, allocations: 2.656 kB / 0.5838 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000513/0.359, allocations: 0.5098 MB / 0.5843 GB, free: 21.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/0.3591, allocations: 124.4 kB / 0.5844 GB, free: 21.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.3591, allocations: 11.22 kB / 0.5844 GB, free: 21.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.3593, allocations: 17.03 kB / 0.5844 GB, free: 21.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.7e-05/0.3594, allocations: 11.08 kB / 0.5845 GB, free: 21.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3594, allocations: 6.625 kB / 0.5845 GB, free: 21.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.3595, allocations: 150.8 kB / 0.5846 GB, free: 20.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.3595, allocations: 0 / 0.5846 GB, free: 20.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003732/0.3599, allocations: 73.28 kB / 0.5847 GB, free: 20.91 MB / 446.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.0007207/0.3606, allocations: 1.056 MB / 0.5857 GB, free: 20.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007797/0.3614, allocations: 448.2 kB / 0.5861 GB, free: 19.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3614, allocations: 0 / 0.5861 GB, free: 19.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.3616, allocations: 122.1 kB / 0.5863 GB, free: 19.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.362, allocations: 41.66 kB / 0.5863 GB, free: 19.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.3652, allocations: 2.887 MB / 0.5891 GB, free: 17.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.3654, allocations: 0.7702 MB / 0.5899 GB, free: 16.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001843/0.3656, allocations: 56.34 kB / 0.5899 GB, free: 16.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.3657, allocations: 70.56 kB / 0.59 GB, free: 16.68 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3658, allocations: 0 / 0.59 GB, free: 16.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.3879, allocations: 4.989 MB / 0.5949 GB, free: 13.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.604/8.992, allocations: 6.922 kB / 0.5949 GB, free: 13.88 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)