Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment") translateModel(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 104.8 kB / 16.35 MB, free: 6.34 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.001506/0.001506, allocations: 195.3 kB / 17.29 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.562/1.562, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.118/0.118, allocations: 8.12 MB / 278.6 MB, free: 3.961 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 71.89 kB / 338.6 MB, free: 7.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2917, allocations: 48.27 MB / 386.9 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment): time 0.00189/0.2937, allocations: 397.7 kB / 387.3 MB, free: 51.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001731/0.2939, allocations: 13.72 kB / 387.3 MB, free: 51.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.804e-05/0.2939, allocations: 0.8125 kB / 387.3 MB, free: 51.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.2939, allocations: 0 / 387.3 MB, free: 51.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.021e-06/0.2939, allocations: 6.531 kB / 387.3 MB, free: 51.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.2941, allocations: 0.6094 kB / 387.3 MB, free: 51.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.058e-05/0.2942, allocations: 5.922 kB / 387.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.893e-05/0.2943, allocations: 2.734 kB / 387.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.955e-05/0.2943, allocations: 3.188 kB / 387.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.034e-05/0.2944, allocations: 6.516 kB / 387.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.2944, allocations: 0 / 387.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.306e-06/0.2944, allocations: 0 / 387.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.012e-05/0.2944, allocations: 0 / 387.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.2945, allocations: 5.25 kB / 387.3 MB, free: 51.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.718e-05/0.2945, allocations: 1.438 kB / 387.3 MB, free: 51.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-05/0.2946, allocations: 3.312 kB / 387.3 MB, free: 51.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.2946, allocations: 0 / 387.3 MB, free: 51.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2946, allocations: 0 / 387.3 MB, free: 51.3 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000334/0.2949, allocations: 315.4 kB / 387.6 MB, free: 50.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.295, allocations: 10 kB / 387.7 MB, free: 50.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.295, allocations: 2.656 kB / 387.7 MB, free: 50.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.976e-05/0.2951, allocations: 161 kB / 387.8 MB, free: 50.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.2951, allocations: 2.719 kB / 387.8 MB, free: 50.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.2952, allocations: 1.922 kB / 387.8 MB, free: 50.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.2953, allocations: 34.23 kB / 387.9 MB, free: 50.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.2953, allocations: 192 / 387.9 MB, free: 50.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.2953, allocations: 4.812 kB / 387.9 MB, free: 50.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2953, allocations: 1.219 kB / 387.9 MB, free: 50.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.077e-05/0.2954, allocations: 2.359 kB / 387.9 MB, free: 50.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002638/0.2956, allocations: 155.3 kB / 388 MB, free: 50.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.165e-05/0.2957, allocations: 16.73 kB / 388 MB, free: 50.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.617e-05/0.2957, allocations: 8.422 kB / 388 MB, free: 50.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-06/0.2957, allocations: 2.984 kB / 388 MB, free: 50.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.603e-05/0.2957, allocations: 34.5 kB / 388.1 MB, free: 50.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.153e-06/0.2957, allocations: 2.344 kB / 388.1 MB, free: 50.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001358/0.2959, allocations: 40.95 kB / 388.1 MB, free: 50.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.2959, allocations: 52.16 kB / 388.2 MB, free: 50.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.532e-05/0.2959, allocations: 91.42 kB / 388.3 MB, free: 50.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.735e-06/0.296, allocations: 31.55 kB / 388.3 MB, free: 50.22 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.541e-05/0.296, allocations: 81.2 kB / 388.4 MB, free: 50.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.296, allocations: 4.516 kB / 388.4 MB, free: 50.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.296, allocations: 17.48 kB / 388.4 MB, free: 50.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.2961, allocations: 312.9 kB / 388.7 MB, free: 49.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.403e-05/0.2961, allocations: 2.859 kB / 388.7 MB, free: 49.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.726e-06/0.2961, allocations: 2.938 kB / 388.7 MB, free: 49.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.507e-05/0.2962, allocations: 17.95 kB / 388.7 MB, free: 49.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2962, allocations: 6.594 kB / 388.7 MB, free: 49.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.237e-05/0.2962, allocations: 35.02 kB / 388.8 MB, free: 49.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2963, allocations: 5.125 kB / 388.8 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2963, allocations: 3.984 kB / 388.8 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.2963, allocations: 8.938 kB / 388.8 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.559e-05/0.2963, allocations: 3.734 kB / 388.8 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.2963, allocations: 0 / 388.8 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.362e-05/0.2964, allocations: 2.75 kB / 388.8 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.2964, allocations: 2.312 kB / 388.8 MB, free: 49.74 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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 5.208e-05/0.2964, allocations: 110.4 kB / 388.9 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.235e-06/0.2964, allocations: 1.797 kB / 388.9 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.758e-05/0.2965, allocations: 11.02 kB / 388.9 MB, free: 49.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2965, allocations: 2.75 kB / 388.9 MB, free: 49.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2965, allocations: 3.938 kB / 388.9 MB, free: 49.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2965, allocations: 0 / 388.9 MB, free: 49.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.655e-05/0.2966, allocations: 151.9 kB / 389.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2966, allocations: 1.188 kB / 389.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.353e-05/0.2966, allocations: 1.25 kB / 389.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.2966, allocations: 1.828 kB / 389.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2967, allocations: 3.938 kB / 389.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2967, allocations: 3.016 kB / 389.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2967, allocations: 1.125 kB / 389.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.98e-05/0.2968, allocations: 65.78 kB / 389.1 MB, free: 49.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.2968, allocations: 77.72 kB / 389.2 MB, free: 49.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.2968, allocations: 6.125 kB / 389.2 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/0.2968, allocations: 0 / 389.2 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.348e-05/0.2968, allocations: 1.219 kB / 389.2 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-06/0.2969, allocations: 0.7031 kB / 389.2 MB, free: 49.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.524e-05/0.2969, allocations: 75.28 kB / 389.3 MB, free: 49.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.2969, allocations: 1.406 kB / 389.3 MB, free: 49.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.2971, allocations: 3.938 kB / 389.3 MB, free: 49.18 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * 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 (1): * Single equations (assignments): 1 * 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 9.596e-05/0.2972, allocations: 103.7 kB / 389.4 MB, free: 49.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.965e-05/0.2973, allocations: 5.438 kB / 389.4 MB, free: 49.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2973, allocations: 1.156 kB / 389.4 MB, free: 49.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.535e-06/0.2973, allocations: 6.156 kB / 389.4 MB, free: 49.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.2975, allocations: 1.094 kB / 389.4 MB, free: 49.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.2977, allocations: 112.9 kB / 389.5 MB, free: 48.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.2979, allocations: 0.68 MB / 390.2 MB, free: 48.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.19e-05/0.2979, allocations: 0 / 390.2 MB, free: 48.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.174e-05/0.298, allocations: 8.531 kB / 390.2 MB, free: 48.27 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.298, allocations: 0 / 390.2 MB, free: 48.27 MB / 318.1 MB Notification: Performance of Templates: time 0.00273/0.3007, allocations: 206.6 kB / 390.4 MB, free: 48.23 MB / 318.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.makefile (rm -f ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe ; mkfifo ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe >> ../files/ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.sim & ./ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe 2>&1)