Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.JSONTest.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/ExternData 3.0.4/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009378/0.009378, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.001936/0.001936, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.529/1.529, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.1732/0.1732, allocations: 2.927 MB / 293.5 MB, free: 3.309 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 67.89 kB / 406.3 MB, free: 120 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3227, allocations: 50.34 MB / 456.6 MB, free: 20.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003376/0.3261, allocations: 1.699 MB / 458.3 MB, free: 19.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00221/0.3283, allocations: 1.62 MB / 459.9 MB, free: 18.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.364e-05/0.3284, allocations: 0 / 459.9 MB, free: 18.67 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo:104:3-139:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003596/0.3288, allocations: 39.38 kB / 460 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004255/0.3292, allocations: 122.1 kB / 460.1 MB, free: 18.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.3296, allocations: 94.95 kB / 460.2 MB, free: 18.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.3297, allocations: 86.84 kB / 460.2 MB, free: 18.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.866e-05/0.3298, allocations: 10.83 kB / 460.3 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.634e-05/0.3299, allocations: 47.23 kB / 460.3 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.3301, allocations: 34.69 kB / 460.3 MB, free: 18.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.3301, allocations: 6.344 kB / 460.3 MB, free: 18.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003326/0.3305, allocations: 203.7 kB / 460.5 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.001e-05/0.3306, allocations: 32.84 kB / 460.6 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.3306, allocations: 32.2 kB / 460.6 MB, free: 18.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.331, allocations: 215.6 kB / 460.8 MB, free: 18.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.331, allocations: 0 / 460.8 MB, free: 18.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3311, allocations: 3.188 kB / 460.8 MB, free: 18.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.3311, allocations: 0 / 460.8 MB, free: 18.28 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005885/0.3317, allocations: 460.7 kB / 461.3 MB, free: 17.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3317, allocations: 16.23 kB / 461.3 MB, free: 17.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.593e-05/0.3318, allocations: 12.55 kB / 461.3 MB, free: 17.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.332, allocations: 199.8 kB / 461.5 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.332, allocations: 7.188 kB / 461.5 MB, free: 17.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.3321, allocations: 7.25 kB / 461.5 MB, free: 17.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.3323, allocations: 94.56 kB / 461.6 MB, free: 17.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3323, allocations: 3.984 kB / 461.6 MB, free: 17.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.3323, allocations: 4 kB / 461.6 MB, free: 17.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.3323, allocations: 3.031 kB / 461.6 MB, free: 17.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.3325, allocations: 56.89 kB / 461.7 MB, free: 17.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003891/0.3329, allocations: 299.6 kB / 462 MB, free: 17.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.3331, allocations: 97.36 kB / 462.1 MB, free: 17.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.3332, allocations: 59.86 kB / 462.1 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.3333, allocations: 0 / 462.1 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.3335, allocations: 143 kB / 462.3 MB, free: 17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.3335, allocations: 0 / 462.3 MB, free: 17 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000454/0.334, allocations: 233.6 kB / 462.5 MB, free: 16.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.334, allocations: 110.5 kB / 462.6 MB, free: 16.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.3341, allocations: 141.2 kB / 462.7 MB, free: 16.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.3341, allocations: 28.77 kB / 462.8 MB, free: 16.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.935e-05/0.3342, allocations: 93.41 kB / 462.8 MB, free: 16.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.3342, allocations: 28.72 kB / 462.9 MB, free: 16.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.596e-05/0.3343, allocations: 25.45 kB / 462.9 MB, free: 16.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.275e-05/0.3343, allocations: 329.1 kB / 463.2 MB, free: 16.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.746e-05/0.3344, allocations: 34.67 kB / 463.3 MB, free: 16.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.783e-05/0.3345, allocations: 57.92 kB / 463.3 MB, free: 16.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.3347, allocations: 142.5 kB / 463.4 MB, free: 16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3347, allocations: 3.547 kB / 463.5 MB, free: 16 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002514/0.3349, allocations: 186 kB / 463.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.335, allocations: 42.2 kB / 463.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.335, allocations: 0 / 463.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.335, allocations: 0 / 463.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.808e-05/0.3351, allocations: 14.81 kB / 463.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.3351, allocations: 7.625 kB / 463.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.783e-05/0.3352, allocations: 12.25 kB / 463.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.3352, allocations: 10.56 kB / 463.7 MB, free: 15.85 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 8.448e-05/0.3353, allocations: 154.4 kB / 463.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.3353, allocations: 10 kB / 463.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.542e-05/0.3353, allocations: 16.67 kB / 463.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3353, allocations: 3.938 kB / 463.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.3354, allocations: 2.844 kB / 463.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3354, allocations: 0.75 kB / 463.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.3355, allocations: 204.1 kB / 464.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3355, allocations: 4.328 kB / 464.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.943e-05/0.3356, allocations: 15.06 kB / 464.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3356, allocations: 0 / 464.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.3356, allocations: 7.531 kB / 464.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3356, allocations: 3.031 kB / 464.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3356, allocations: 4 kB / 464.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.3359, allocations: 246.1 kB / 464.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.855e-05/0.3359, allocations: 89.59 kB / 464.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.336, allocations: 3.859 kB / 464.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.316e-05/0.336, allocations: 4.641 kB / 464.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.3361, allocations: 13.33 kB / 464.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.3361, allocations: 12.02 kB / 464.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.13e-05/0.3362, allocations: 105.7 kB / 464.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3362, allocations: 0 / 464.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.3365, allocations: 80.98 kB / 464.7 MB, free: 15.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.0008231/0.3373, allocations: 391.3 kB / 465.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002893/0.3376, allocations: 192.1 kB / 465.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3376, allocations: 0 / 465.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.3378, allocations: 138.4 kB / 465.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.338, allocations: 14.42 kB / 465.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004061/0.3384, allocations: 236.8 kB / 465.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.3385, allocations: 0.7001 MB / 466.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.911e-05/0.3386, allocations: 12.97 kB / 466.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.126e-05/0.3386, allocations: 18.75 kB / 466.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3386, allocations: 0 / 466.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of Templates: time 0.00602/0.3446, allocations: 2.543 MB / 468.9 MB, free: 13.52 MB / 350.1 MB make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile (rm -f ExternData_ExternData.Examples.JSONTest.pipe ; mkfifo ExternData_ExternData.Examples.JSONTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.JSONTest.pipe >> ../files/ExternData_ExternData.Examples.JSONTest.sim & ./ExternData_ExternData.Examples.JSONTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1)