Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.0007462/0.0007462, allocations: 92.7 kB / 15.7 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007728/0.0007727, allocations: 172.2 kB / 16.58 MB, free: 6.848 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.31/1.31, allocations: 223.3 MB / 240.6 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6491/0.6491, allocations: 113.7 MB / 405.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002894, allocations: 8 kB / 493.2 MB, free: 8.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1408, allocations: 77.12 MB / 0.5569 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.003974/0.1448, allocations: 3.247 MB / 0.5601 GB, free: 8.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.1477, allocations: 1.681 MB / 0.5617 GB, free: 6.723 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003215/0.148, allocations: 11.94 kB / 0.5617 GB, free: 6.711 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.1483, allocations: 55.44 kB / 0.5618 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006893/0.149, allocations: 230.8 kB / 0.562 GB, free: 6.43 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.1495, allocations: 187.6 kB / 0.5622 GB, free: 6.246 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008125/0.1504, allocations: 0.6322 MB / 0.5628 GB, free: 5.609 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000676/0.151, allocations: 330.5 kB / 0.5631 GB, free: 5.266 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004441/0.1515, allocations: 203.1 kB / 0.5633 GB, free: 5.066 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.1519, allocations: 215.1 kB / 0.5635 GB, free: 4.855 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.989e-05/0.1519, allocations: 12 kB / 0.5635 GB, free: 4.844 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003252/0.1523, allocations: 135.8 kB / 0.5637 GB, free: 4.711 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.1524, allocations: 107.6 kB / 0.5638 GB, free: 4.605 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1525, allocations: 93.52 kB / 0.5638 GB, free: 4.508 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004871/0.153, allocations: 443 kB / 0.5643 GB, free: 4.074 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.153, allocations: 0 / 0.5643 GB, free: 4.074 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.153, allocations: 4 kB / 0.5643 GB, free: 4.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.153, allocations: 0 / 0.5643 GB, free: 4.07 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001075/0.1541, allocations: 0.666 MB / 0.5649 GB, free: 3.355 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1542, allocations: 12.03 kB / 0.5649 GB, free: 3.344 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.348e-05/0.1543, allocations: 66.53 kB / 0.565 GB, free: 3.27 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008171/0.1551, allocations: 135.3 kB / 0.5651 GB, free: 3.137 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004935/0.1556, allocations: 362.5 kB / 0.5655 GB, free: 2.746 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.1556, allocations: 20.66 kB / 0.5655 GB, free: 2.723 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.1557, allocations: 31.98 kB / 0.5655 GB, free: 2.691 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007816/0.1565, allocations: 0.5592 MB / 0.5661 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.1565, allocations: 4 kB / 0.5661 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.1566, allocations: 15.98 kB / 0.5661 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.882e-05/0.1566, allocations: 40.48 kB / 0.5661 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006846/0.1573, allocations: 417.8 kB / 0.5665 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002684/0.16, allocations: 3.33 MB / 0.5698 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005971/0.1606, allocations: 346.2 kB / 0.5701 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.1609, allocations: 188.6 kB / 0.5703 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.161, allocations: 8 kB / 0.5703 GB, free: 13.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.161, allocations: 38.56 kB / 0.5703 GB, free: 13.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=26): time 1.402e-06/0.161, allocations: 4 kB / 0.5703 GB, free: 13.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.00183/0.1628, allocations: 1.072 MB / 0.5714 GB, free: 12.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.1629, allocations: 63.56 kB / 0.5714 GB, free: 12.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.1632, allocations: 341.5 kB / 0.5718 GB, free: 11.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.1632, allocations: 25.7 kB / 0.5718 GB, free: 11.83 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.1634, allocations: 247.5 kB / 0.572 GB, free: 11.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.809e-05/0.1635, allocations: 98.64 kB / 0.5721 GB, free: 11.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.1635, allocations: 4 kB / 0.5721 GB, free: 11.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1636, allocations: 350.8 kB / 0.5725 GB, free: 11.13 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.1639, allocations: 152.8 kB / 0.5726 GB, free: 10.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003225/0.1642, allocations: 291.1 kB / 0.5729 GB, free: 10.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.1645, allocations: 201.5 kB / 0.5731 GB, free: 10.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1645, allocations: 0 / 0.5731 GB, free: 10.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008884/0.1654, allocations: 0.5788 MB / 0.5736 GB, free: 9.848 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1655, allocations: 4 kB / 0.5736 GB, free: 9.844 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.1655, allocations: 8 kB / 0.5737 GB, free: 9.836 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.1658, allocations: 86.5 kB / 0.5737 GB, free: 9.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.1661, allocations: 95.81 kB / 0.5738 GB, free: 9.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.1661, allocations: 11.95 kB / 0.5738 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.1663, allocations: 32.03 kB / 0.5739 GB, free: 9.605 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.722e-05/0.1664, allocations: 23.94 kB / 0.5739 GB, free: 9.582 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001725/0.1666, allocations: 169.7 kB / 0.5741 GB, free: 9.406 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.1666, allocations: 39.53 kB / 0.5741 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008114/0.1674, allocations: 476 kB / 0.5745 GB, free: 8.887 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1675, allocations: 4 kB / 0.5745 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.1675, allocations: 0 / 0.5745 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1675, allocations: 3.984 kB / 0.5746 GB, free: 8.879 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.1688, allocations: 0.97 MB / 0.5755 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1688, allocations: 0 / 0.5755 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.169, allocations: 60.05 kB / 0.5756 GB, free: 7.777 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.1692, allocations: 78.45 kB / 0.5756 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.1692, allocations: 11.95 kB / 0.5756 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1693, allocations: 0 / 0.5756 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1693, allocations: 0 / 0.5756 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007645/0.17, allocations: 0.5585 MB / 0.5762 GB, free: 7.086 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.1702, allocations: 136.6 kB / 0.5763 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.954e-05/0.1702, allocations: 8 kB / 0.5763 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.1705, allocations: 23.97 kB / 0.5763 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/0.1705, allocations: 27.91 kB / 0.5764 GB, free: 6.875 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.1705, allocations: 4 kB / 0.5764 GB, free: 6.871 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.1708, allocations: 231.2 kB / 0.5766 GB, free: 6.645 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1708, allocations: 7.938 kB / 0.5766 GB, free: 6.637 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003845/0.1712, allocations: 88 kB / 0.5767 GB, free: 6.551 MB / 446.1 MB 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001032/0.1722, allocations: 1.097 MB / 0.5778 GB, free: 5.406 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008389/0.173, allocations: 0.6511 MB / 0.5784 GB, free: 4.691 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1731, allocations: 128 / 0.5784 GB, free: 4.691 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004309/0.1735, allocations: 445.4 kB / 0.5788 GB, free: 4.195 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.1741, allocations: 122.3 kB / 0.5789 GB, free: 4.082 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.1774, allocations: 2.362 MB / 0.5812 GB, free: 1.594 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.1778, allocations: 0.8272 MB / 0.5821 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002546/0.178, allocations: 79.36 kB / 0.5821 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.1782, allocations: 135.3 kB / 0.5823 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1782, allocations: 0 / 0.5823 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.277/0.4552, allocations: 7.783 MB / 0.5899 GB, free: 32.29 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001441/0.4553, allocations: 224.4 kB / 0.5901 GB, free: 32.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.222, allocations: 1.156 kB / 0.5901 GB, free: 32.05 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) Environment - environmentSimulation: