Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",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.005909/0.005909, allocations: 102 kB / 15.73 MB, free: 6.039 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.001346/0.001346, allocations: 194 kB / 16.67 MB, free: 5.961 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8424/0.8424, allocations: 135.1 MB / 425.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 66.77 kB / 0.5851 GB, free: 22.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1562, allocations: 80.92 MB / 0.6641 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002985/0.1592, allocations: 1.632 MB / 0.6657 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008278/0.1601, allocations: 0.5417 MB / 0.6663 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.524e-05/0.1602, allocations: 7.938 kB / 0.6663 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.1604, allocations: 23.78 kB / 0.6663 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002636/0.1606, allocations: 71.66 kB / 0.6663 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001412/0.1608, allocations: 55.92 kB / 0.6664 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002006/0.161, allocations: 143.5 kB / 0.6665 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.1611, allocations: 45.47 kB / 0.6666 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.1613, allocations: 59.81 kB / 0.6666 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.1614, allocations: 59.59 kB / 0.6667 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.1614, allocations: 8 kB / 0.6667 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.183e-05/0.1615, allocations: 27.97 kB / 0.6667 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.553e-05/0.1616, allocations: 43.84 kB / 0.6668 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.251e-05/0.1617, allocations: 63.59 kB / 0.6668 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002058/0.1619, allocations: 150.2 kB / 0.667 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1619, allocations: 0 / 0.667 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.023e-06/0.1619, allocations: 0 / 0.667 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.1619, allocations: 4 kB / 0.667 GB, free: 3.496 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006557/0.1626, allocations: 467.5 kB / 0.6674 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1626, allocations: 9.109 kB / 0.6674 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.298e-05/0.1627, allocations: 42.73 kB / 0.6675 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.726e-05/0.1627, allocations: 20.75 kB / 0.6675 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.163, allocations: 240.7 kB / 0.6677 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.163, allocations: 12.38 kB / 0.6677 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.1631, allocations: 4.375 kB / 0.6677 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.1634, allocations: 105.8 kB / 0.6678 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.1634, allocations: 0 / 0.6678 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.1634, allocations: 8 kB / 0.6678 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1634, allocations: 0 / 0.6678 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002293/0.1636, allocations: 63.94 kB / 0.6679 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005656/0.1642, allocations: 380.5 kB / 0.6683 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.1644, allocations: 42.48 kB / 0.6683 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.1645, allocations: 32.89 kB / 0.6683 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.1645, allocations: 4 kB / 0.6683 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.1647, allocations: 93.09 kB / 0.6684 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1647, allocations: 0 / 0.6684 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.00044/0.1652, allocations: 129.3 kB / 0.6686 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.1652, allocations: 77.11 kB / 0.6686 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.1655, allocations: 253 kB / 0.6689 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.1655, allocations: 29.7 kB / 0.6689 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.828e-05/0.1656, allocations: 128 kB / 0.669 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.1656, allocations: 11.89 kB / 0.669 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.1657, allocations: 17.72 kB / 0.6691 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1658, allocations: 322.8 kB / 0.6694 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.1659, allocations: 27.97 kB / 0.6694 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.1661, allocations: 51.58 kB / 0.6694 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.1663, allocations: 70.5 kB / 0.6695 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1663, allocations: 0 / 0.6695 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002728/0.1666, allocations: 105.4 kB / 0.6696 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.1666, allocations: 4 kB / 0.6696 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1666, allocations: 4.094 kB / 0.6696 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1666, allocations: 7.875 kB / 0.6696 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.1667, allocations: 11.98 kB / 0.6696 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.1668, allocations: 7.984 kB / 0.6696 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.035e-05/0.1668, allocations: 4 kB / 0.6696 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1669, allocations: 7.984 kB / 0.6697 GB, free: 0.4922 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.965e-05/0.167, allocations: 129.7 kB / 0.6698 GB, free: 364 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.954e-05/0.167, allocations: 27.7 kB / 0.6698 GB, free: 336 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.167, allocations: 21.19 kB / 0.6698 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1671, allocations: 0 / 0.6698 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1671, allocations: 3.938 kB / 0.6698 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1671, allocations: 0 / 0.6698 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.1672, allocations: 217.6 kB / 0.67 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1673, allocations: 0 / 0.67 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.69e-05/0.1673, allocations: 11.98 kB / 0.67 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1673, allocations: 0 / 0.67 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.1674, allocations: 7.938 kB / 0.6701 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1674, allocations: 0 / 0.6701 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1674, allocations: 8 kB / 0.6701 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.1677, allocations: 116.9 kB / 0.6702 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.057e-05/0.1677, allocations: 92.91 kB / 0.6703 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.1678, allocations: 3.938 kB / 0.6703 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.179e-05/0.1679, allocations: 11.98 kB / 0.6703 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.1679, allocations: 8 kB / 0.6703 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.1679, allocations: 8 kB / 0.6703 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001669/0.1681, allocations: 184.5 kB / 0.6705 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1681, allocations: 3.938 kB / 0.6705 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002096/0.1683, allocations: 20 kB / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006859/0.169, allocations: 0.6853 MB / 0.6712 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002843/0.1693, allocations: 67.88 kB / 0.6712 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1693, allocations: 0 / 0.6712 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.1694, allocations: 32.16 kB / 0.6713 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.1697, allocations: 39.3 kB / 0.6713 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.1718, allocations: 1.755 MB / 0.673 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.1721, allocations: 0.7274 MB / 0.6737 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.096e-05/0.1722, allocations: 12.55 kB / 0.6737 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.907e-05/0.1723, allocations: 43.42 kB / 0.6738 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of SimCode: time 2.11e-07/0.1723, allocations: 0 / 0.6738 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.1941, allocations: 3.652 MB / 0.6773 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.54/7.734, allocations: 0 / 0.6773 GB, free: 8.473 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)