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.00127/0.00127, allocations: 105.7 kB / 16.4 MB, free: 6.496 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.001285/0.001285, allocations: 195.8 kB / 17.34 MB, free: 5.762 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.433/1.433, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8197/0.8197, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 68.56 kB / 0.5735 GB, free: 27.1 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1383, allocations: 78.86 MB / 0.6505 GB, free: 3.613 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004842/0.1432, allocations: 3.07 MB / 0.6535 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.146, allocations: 1.726 MB / 0.6552 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1462, allocations: 4 kB / 0.6552 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.1472, allocations: 334.7 kB / 0.6556 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005134/0.1477, allocations: 211.1 kB / 0.6558 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004717/0.1482, allocations: 183.5 kB / 0.6559 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.1486, allocations: 319 kB / 0.6562 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004085/0.149, allocations: 237 kB / 0.6565 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.1492, allocations: 135.6 kB / 0.6566 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/0.1496, allocations: 163.4 kB / 0.6567 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.778e-05/0.1496, allocations: 20 kB / 0.6568 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004072/0.15, allocations: 247.5 kB / 0.657 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.1502, allocations: 103.7 kB / 0.6571 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1503, allocations: 123.4 kB / 0.6572 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005358/0.1508, allocations: 418.5 kB / 0.6576 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1509, allocations: 7.938 kB / 0.6576 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1509, allocations: 0 / 0.6576 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.1509, allocations: 0 / 0.6576 GB, free: 12.34 MB / 0.4981 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.0009471/0.1518, allocations: 0.5609 MB / 0.6582 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1519, allocations: 8.031 kB / 0.6582 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.31e-05/0.1519, allocations: 54.73 kB / 0.6582 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007008/0.1526, allocations: 92.69 kB / 0.6583 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.153, allocations: 263.9 kB / 0.6586 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.153, allocations: 20.81 kB / 0.6586 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.421e-05/0.1531, allocations: 28.52 kB / 0.6586 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005826/0.1537, allocations: 376.9 kB / 0.659 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1537, allocations: 0 / 0.659 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.1538, allocations: 8 kB / 0.659 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.53e-05/0.1539, allocations: 24.42 kB / 0.659 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.1544, allocations: 317.5 kB / 0.6593 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1563, allocations: 1.529 MB / 0.6608 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/0.1567, allocations: 218.5 kB / 0.661 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.1569, allocations: 116.8 kB / 0.6611 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001419/0.157, allocations: 89.09 kB / 0.6612 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.1571, allocations: 34.56 kB / 0.6612 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.433e-06/0.1571, allocations: 4 kB / 0.6612 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001467/0.1586, allocations: 0.8 MB / 0.662 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.1586, allocations: 51.41 kB / 0.6621 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.1588, allocations: 198.6 kB / 0.6623 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.1589, allocations: 25.7 kB / 0.6623 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.159, allocations: 168.1 kB / 0.6625 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.1591, allocations: 71.36 kB / 0.6625 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.1592, allocations: 69.64 kB / 0.6626 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1593, allocations: 326.8 kB / 0.6629 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.1595, allocations: 115.9 kB / 0.663 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.1598, allocations: 165.9 kB / 0.6632 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004372/0.1602, allocations: 289.9 kB / 0.6634 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1602, allocations: 3.938 kB / 0.6634 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007936/0.161, allocations: 420.8 kB / 0.6638 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.1611, allocations: 8 kB / 0.6639 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1611, allocations: 0 / 0.6639 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004349/0.1615, allocations: 104.9 kB / 0.664 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.1618, allocations: 55.89 kB / 0.664 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.1639, allocations: 1.868 MB / 0.6658 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.1641, allocations: 19.95 kB / 0.6659 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.1642, allocations: 12 kB / 0.6659 GB, free: 3.297 MB / 0.4981 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.0001705/0.1644, allocations: 153.9 kB / 0.666 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.174e-05/0.1644, allocations: 19.84 kB / 0.666 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005029/0.1649, allocations: 307.1 kB / 0.6663 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.1649, allocations: 4 kB / 0.6663 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.1649, allocations: 192 / 0.6663 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.165, allocations: 3.938 kB / 0.6663 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009657/0.1659, allocations: 0.7107 MB / 0.667 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1659, allocations: 4 kB / 0.667 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003008/0.1662, allocations: 55.89 kB / 0.6671 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.1663, allocations: 7.938 kB / 0.6671 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1663, allocations: 4 kB / 0.6671 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1663, allocations: 4 kB / 0.6671 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1663, allocations: 0 / 0.6671 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006515/0.167, allocations: 0.515 MB / 0.6676 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.1671, allocations: 116.9 kB / 0.6677 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.1671, allocations: 8 kB / 0.6677 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.1673, allocations: 15.98 kB / 0.6677 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.072e-05/0.1673, allocations: 7.984 kB / 0.6677 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.1674, allocations: 8 kB / 0.6677 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001369/0.1675, allocations: 152.1 kB / 0.6679 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1675, allocations: 0 / 0.6679 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003496/0.1679, allocations: 71.98 kB / 0.668 GB, free: 1.031 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.0009913/0.1689, allocations: 1.058 MB / 0.669 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007313/0.1696, allocations: 430.2 kB / 0.6694 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1696, allocations: 0 / 0.6694 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.1698, allocations: 123.9 kB / 0.6695 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.1702, allocations: 33.98 kB / 0.6696 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003863/0.1741, allocations: 2.903 MB / 0.6724 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.1745, allocations: 0.7675 MB / 0.6731 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001668/0.1747, allocations: 61.91 kB / 0.6732 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.1748, allocations: 71.41 kB / 0.6733 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.1748, allocations: 0 / 0.6733 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8365/1.011, allocations: 5.084 MB / 0.6782 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/12.31, allocations: 21.78 kB / 0.6783 GB, free: 6.434 MB / 0.5137 GB (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)