Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008544/0.0008543, allocations: 99.36 kB / 15.71 MB, free: 452 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.0009097/0.0009098, allocations: 178.9 kB / 16.58 MB, free: 6.422 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.423/1.423, allocations: 223.2 MB / 240.6 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7699/0.7699, allocations: 132.3 MB / 424 MB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 8 kB / 0.504 GB, free: 4.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5138/0.5142, allocations: 81.58 MB / 0.5837 GB, free: 3.977 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001882/0.5161, allocations: 1.318 MB / 0.585 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007926/0.5169, allocations: 0.5153 MB / 0.5855 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.277e-05/0.517, allocations: 5.781 kB / 0.5855 GB, free: 2.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.5172, allocations: 24.42 kB / 0.5855 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002363/0.5174, allocations: 55.11 kB / 0.5855 GB, free: 2.613 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001438/0.5176, allocations: 54.2 kB / 0.5856 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001913/0.5178, allocations: 118.7 kB / 0.5857 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.518, allocations: 40.62 kB / 0.5858 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.5181, allocations: 41.92 kB / 0.5858 GB, free: 2.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.5182, allocations: 50.34 kB / 0.5858 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.5182, allocations: 4.125 kB / 0.5858 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.61e-05/0.5183, allocations: 14.33 kB / 0.5859 GB, free: 2.473 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.553e-05/0.5184, allocations: 43.42 kB / 0.5859 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.386e-05/0.5184, allocations: 39.73 kB / 0.5859 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.5186, allocations: 101.3 kB / 0.586 GB, free: 2.387 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.5186, allocations: 4.562 kB / 0.586 GB, free: 2.383 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.5186, allocations: 0 / 0.586 GB, free: 2.383 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.5186, allocations: 0.5938 kB / 0.586 GB, free: 2.383 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005182/0.5192, allocations: 456.2 kB / 0.5865 GB, free: 1.961 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.5192, allocations: 10.59 kB / 0.5865 GB, free: 1.961 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.5193, allocations: 16 kB / 0.5865 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.5195, allocations: 232.8 kB / 0.5867 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.5195, allocations: 2.219 kB / 0.5867 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.5195, allocations: 7.812 kB / 0.5867 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.5198, allocations: 113.2 kB / 0.5868 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.5198, allocations: 1.312 kB / 0.5868 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.5199, allocations: 4 kB / 0.5868 GB, free: 1.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.5199, allocations: 6.375 kB / 0.5868 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.5201, allocations: 72.84 kB / 0.5869 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005597/0.5207, allocations: 396.2 kB / 0.5873 GB, free: 1.324 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.5208, allocations: 54.09 kB / 0.5873 GB, free: 1.289 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.521, allocations: 36.22 kB / 0.5874 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.521, allocations: 0 / 0.5874 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.5213, allocations: 108.2 kB / 0.5875 GB, free: 1.199 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.824e-06/0.5213, allocations: 3.984 kB / 0.5875 GB, free: 1.195 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004198/0.5217, allocations: 141.8 kB / 0.5876 GB, free: 1.141 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.5217, allocations: 79.53 kB / 0.5877 GB, free: 1.047 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.522, allocations: 252.7 kB / 0.5879 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.522, allocations: 26.92 kB / 0.588 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.795e-05/0.5221, allocations: 135.1 kB / 0.5881 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.5221, allocations: 9.812 kB / 0.5881 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.5221, allocations: 0 / 0.5881 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.806e-05/0.5222, allocations: 328.6 kB / 0.5884 GB, free: 428 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.5223, allocations: 35.02 kB / 0.5885 GB, free: 420 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.5225, allocations: 58.56 kB / 0.5885 GB, free: 380 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.5226, allocations: 40.53 kB / 0.5885 GB, free: 368 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.5226, allocations: 0 / 0.5885 GB, free: 368 kB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002761/0.5229, allocations: 118.7 kB / 0.5887 GB, free: 312 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.5229, allocations: 6 kB / 0.5887 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.5229, allocations: 1.031 kB / 0.5887 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.5229, allocations: 1.031 kB / 0.5887 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.523, allocations: 15.56 kB / 0.5887 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.5231, allocations: 1.094 kB / 0.5887 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.205e-05/0.5232, allocations: 31.05 kB / 0.5887 GB, free: 296 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.5232, allocations: 1.344 kB / 0.5887 GB, free: 296 kB / 430.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.772e-05/0.5233, allocations: 128.1 kB / 0.5888 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.5233, allocations: 20.3 kB / 0.5889 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.765e-05/0.5233, allocations: 21.94 kB / 0.5889 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.5234, allocations: 0.75 kB / 0.5889 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5234, allocations: 0.75 kB / 0.5889 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.5234, allocations: 0.5 kB / 0.5889 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.5236, allocations: 213.2 kB / 0.5891 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.5236, allocations: 1.094 kB / 0.5891 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.729e-05/0.5237, allocations: 22.45 kB / 0.5891 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.5237, allocations: 3.953 kB / 0.5891 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.5237, allocations: 1.656 kB / 0.5891 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.5237, allocations: 0 / 0.5891 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5237, allocations: 4.984 kB / 0.5891 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.5241, allocations: 134.4 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.822e-05/0.5242, allocations: 97.28 kB / 0.5893 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.5242, allocations: 9.891 kB / 0.5893 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.5243, allocations: 17.05 kB / 0.5894 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.5243, allocations: 11.52 kB / 0.5894 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.5244, allocations: 5.766 kB / 0.5894 GB, free: 15.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002101/0.5246, allocations: 185.2 kB / 0.5896 GB, free: 15.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.5246, allocations: 0.7812 kB / 0.5896 GB, free: 15.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.5248, allocations: 25.84 kB / 0.5896 GB, free: 15.6 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002569/0.5251, allocations: 120.5 kB / 0.5897 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002965/0.5254, allocations: 67.36 kB / 0.5898 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.5254, allocations: 0.625 kB / 0.5898 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.5255, allocations: 42.44 kB / 0.5898 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.5258, allocations: 36.56 kB / 0.5898 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005792/0.5264, allocations: 347.6 kB / 0.5902 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.5268, allocations: 0.7166 MB / 0.5909 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.615e-05/0.5269, allocations: 18.86 kB / 0.5909 GB, free: 14.51 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5269, allocations: 3.938 kB / 0.5909 GB, free: 14.5 MB / 446.1 MB Notification: Performance of Templates: time 0.004736/0.5316, allocations: 2.08 MB / 0.5929 GB, free: 14.3 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1