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.001063/0.001067, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.009476/0.009476, allocations: 172.2 kB / 16.26 MB, free: 6.676 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.318/1.318, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8972/0.8972, allocations: 135.3 MB / 426.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003012, allocations: 11.98 kB / 0.5077 GB, free: 4.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1416, allocations: 82.3 MB / 0.5881 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001699/0.1433, allocations: 1.34 MB / 0.5894 GB, free: 1.176 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007366/0.1441, allocations: 0.5262 MB / 0.5899 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.413e-05/0.1441, allocations: 11.88 kB / 0.5899 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.1443, allocations: 19.86 kB / 0.5899 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.1445, allocations: 59.78 kB / 0.59 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001316/0.1447, allocations: 59.88 kB / 0.59 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001568/0.1448, allocations: 131.5 kB / 0.5902 GB, free: 376 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.145, allocations: 41.47 kB / 0.5902 GB, free: 328 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.563e-05/0.1451, allocations: 43.78 kB / 0.5903 GB, free: 284 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.269e-05/0.1452, allocations: 55.69 kB / 0.5903 GB, free: 228 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.1452, allocations: 4 kB / 0.5903 GB, free: 224 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.968e-05/0.1453, allocations: 19.94 kB / 0.5903 GB, free: 204 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.085e-05/0.1453, allocations: 39.83 kB / 0.5904 GB, free: 164 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.489e-05/0.1454, allocations: 73.31 kB / 0.5904 GB, free: 84 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.1456, allocations: 139.7 kB / 0.5906 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1456, allocations: 0 / 0.5906 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.343e-06/0.1456, allocations: 0 / 0.5906 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.1456, allocations: 0 / 0.5906 GB, free: 15.95 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.0005647/0.1462, allocations: 450.8 kB / 0.591 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1462, allocations: 15.97 kB / 0.591 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.25e-05/0.1463, allocations: 42.69 kB / 0.5911 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.298e-05/0.1463, allocations: 20.73 kB / 0.5911 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.1466, allocations: 228.9 kB / 0.5913 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.1466, allocations: 4.375 kB / 0.5913 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.1466, allocations: 4.375 kB / 0.5913 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.1469, allocations: 117.8 kB / 0.5914 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.1469, allocations: 7.938 kB / 0.5914 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.1469, allocations: 0 / 0.5914 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.1469, allocations: 4 kB / 0.5914 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/0.1472, allocations: 75.94 kB / 0.5915 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005781/0.1478, allocations: 388.5 kB / 0.5919 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.148, allocations: 50.55 kB / 0.5919 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1481, allocations: 36.89 kB / 0.592 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.1481, allocations: 3.984 kB / 0.592 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.1484, allocations: 109 kB / 0.5921 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 2.735e-06/0.1484, allocations: 0 / 0.5921 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004561/0.1489, allocations: 149.3 kB / 0.5922 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.1489, allocations: 77.11 kB / 0.5923 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.1492, allocations: 257 kB / 0.5925 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1492, allocations: 25.7 kB / 0.5925 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.25e-05/0.1493, allocations: 132 kB / 0.5927 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.1494, allocations: 11.91 kB / 0.5927 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/0.1494, allocations: 9.719 kB / 0.5927 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1495, allocations: 330.8 kB / 0.593 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.1496, allocations: 31.97 kB / 0.593 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.1498, allocations: 55.41 kB / 0.5931 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002392/0.15, allocations: 86.44 kB / 0.5932 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.15, allocations: 0 / 0.5932 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002901/0.1503, allocations: 125.4 kB / 0.5933 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.1504, allocations: 4 kB / 0.5933 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1504, allocations: 4 kB / 0.5933 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.1504, allocations: 8.031 kB / 0.5933 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.1505, allocations: 15.98 kB / 0.5933 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1505, allocations: 3.938 kB / 0.5933 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.225e-05/0.1506, allocations: 15.98 kB / 0.5933 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1506, allocations: 0 / 0.5933 GB, free: 12.83 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.418e-05/0.1507, allocations: 129.8 kB / 0.5935 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.1508, allocations: 23.72 kB / 0.5935 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.1508, allocations: 21.17 kB / 0.5935 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1508, allocations: 0 / 0.5935 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1508, allocations: 4 kB / 0.5935 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1508, allocations: 0 / 0.5935 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.151, allocations: 221.5 kB / 0.5937 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.151, allocations: 0 / 0.5937 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.096e-05/0.1511, allocations: 15.98 kB / 0.5937 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1511, allocations: 0 / 0.5937 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1511, allocations: 7.938 kB / 0.5937 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1511, allocations: 0 / 0.5937 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1511, allocations: 0 / 0.5937 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.1514, allocations: 140.8 kB / 0.5939 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.1515, allocations: 96.91 kB / 0.594 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.1515, allocations: 3.938 kB / 0.594 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.74e-05/0.1516, allocations: 15.98 kB / 0.594 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.1516, allocations: 3.984 kB / 0.594 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.1517, allocations: 4 kB / 0.594 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001642/0.1518, allocations: 196.5 kB / 0.5942 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1518, allocations: 0 / 0.5942 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002093/0.1521, allocations: 16 kB / 0.5942 GB, free: 11.85 MB / 0.4981 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.0006289/0.1527, allocations: 0.7041 MB / 0.5949 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002795/0.153, allocations: 83.81 kB / 0.595 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.153, allocations: 0 / 0.595 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.1531, allocations: 32.17 kB / 0.595 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.1534, allocations: 43.48 kB / 0.595 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.1554, allocations: 1.808 MB / 0.5968 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.1556, allocations: 0.7199 MB / 0.5975 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.644e-05/0.1557, allocations: 16.55 kB / 0.5975 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.515e-05/0.1558, allocations: 47.41 kB / 0.5976 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.1558, allocations: 0 / 0.5976 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2717/0.4275, allocations: 3.214 MB / 0.6007 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.4277, allocations: 195.1 kB / 0.6009 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.343, allocations: 0 / 0.6009 GB, free: 4.93 MB / 0.4981 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)