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.001504/0.001504, allocations: 107.6 kB / 16.27 MB, free: 5.988 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.001755/0.001755, allocations: 192.3 kB / 17.2 MB, free: 5.613 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.468/1.468, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.1181/0.1181, allocations: 8.103 MB / 278.5 MB, free: 4.031 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.001713/0.001713, allocations: 67.91 kB / 337.9 MB, free: 8.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2351, allocations: 48.27 MB / 386.1 MB, free: 51.15 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment): time 0.001785/0.2369, allocations: 395.5 kB / 386.5 MB, free: 50.94 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001473/0.2371, allocations: 18.09 kB / 386.5 MB, free: 50.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.726e-05/0.2372, allocations: 0.9688 kB / 386.5 MB, free: 50.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.462e-05/0.2372, allocations: 0 / 386.5 MB, free: 50.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.2372, allocations: 1.344 kB / 386.5 MB, free: 50.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.2373, allocations: 10.34 kB / 386.5 MB, free: 50.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.387e-05/0.2374, allocations: 3.562 kB / 386.6 MB, free: 50.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.425e-05/0.2374, allocations: 2.078 kB / 386.6 MB, free: 50.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.682e-05/0.2375, allocations: 5.938 kB / 386.6 MB, free: 50.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.118e-05/0.2375, allocations: 3.984 kB / 386.6 MB, free: 50.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.2375, allocations: 0 / 386.6 MB, free: 50.92 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.705e-06/0.2375, allocations: 1.344 kB / 386.6 MB, free: 50.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.2376, allocations: 1.312 kB / 386.6 MB, free: 50.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.14e-05/0.2376, allocations: 5.281 kB / 386.6 MB, free: 50.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 4.398e-05/0.2376, allocations: 1.156 kB / 386.6 MB, free: 50.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2377, allocations: 0.9375 kB / 386.6 MB, free: 50.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2377, allocations: 1.5 kB / 386.6 MB, free: 50.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.2377, allocations: 0 / 386.6 MB, free: 50.91 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.0002474/0.2379, allocations: 310.3 kB / 386.9 MB, free: 50.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.238, allocations: 10.47 kB / 386.9 MB, free: 50.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.012e-05/0.238, allocations: 0.9375 kB / 386.9 MB, free: 50.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.339e-05/0.2381, allocations: 168.3 kB / 387.1 MB, free: 50.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.2381, allocations: 384 / 387.1 MB, free: 50.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.2381, allocations: 3.594 kB / 387.1 MB, free: 50.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.857e-05/0.2382, allocations: 33.06 kB / 387.1 MB, free: 50.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2382, allocations: 2.281 kB / 387.1 MB, free: 50.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.2382, allocations: 3.938 kB / 387.1 MB, free: 50.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2382, allocations: 0.8438 kB / 387.1 MB, free: 50.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.88e-05/0.2383, allocations: 2.266 kB / 387.1 MB, free: 50.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002231/0.2385, allocations: 156 kB / 387.2 MB, free: 50.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.36e-05/0.2385, allocations: 16.45 kB / 387.3 MB, free: 50.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.2385, allocations: 7.672 kB / 387.3 MB, free: 50.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.2386, allocations: 2.625 kB / 387.3 MB, free: 50.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.393e-05/0.2386, allocations: 37.64 kB / 387.3 MB, free: 50.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.2386, allocations: 0 / 387.3 MB, free: 50.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001177/0.2387, allocations: 41.28 kB / 387.4 MB, free: 50.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.422e-05/0.2387, allocations: 54.66 kB / 387.4 MB, free: 49.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.724e-05/0.2388, allocations: 89.86 kB / 387.5 MB, free: 49.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.2388, allocations: 26.41 kB / 387.5 MB, free: 49.83 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.497e-05/0.2388, allocations: 81.36 kB / 387.6 MB, free: 49.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.2388, allocations: 5.875 kB / 387.6 MB, free: 49.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/0.2389, allocations: 14.69 kB / 387.6 MB, free: 49.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.297e-05/0.2389, allocations: 316.8 kB / 387.9 MB, free: 49.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.274e-05/0.2389, allocations: 1.984 kB / 387.9 MB, free: 49.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.915e-06/0.2389, allocations: 6.891 kB / 387.9 MB, free: 49.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.937e-05/0.239, allocations: 13.95 kB / 388 MB, free: 49.4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.239, allocations: 1.031 kB / 388 MB, free: 49.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.217e-05/0.239, allocations: 38.78 kB / 388 MB, free: 49.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.2391, allocations: 7.125 kB / 388 MB, free: 49.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2391, allocations: 0 / 388 MB, free: 49.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2391, allocations: 5.344 kB / 388 MB, free: 49.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.102e-05/0.2391, allocations: 3.984 kB / 388 MB, free: 49.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.2391, allocations: 2 kB / 388 MB, free: 49.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.335e-05/0.2392, allocations: 2.562 kB / 388 MB, free: 49.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.2392, allocations: 1.375 kB / 388 MB, free: 49.36 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 4.304e-05/0.2392, allocations: 108.4 kB / 388.1 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-06/0.2392, allocations: 9.062 kB / 388.1 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.592e-05/0.2393, allocations: 11.72 kB / 388.1 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2393, allocations: 0 / 388.1 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2393, allocations: 2.344 kB / 388.1 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2393, allocations: 0 / 388.1 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.74e-05/0.2394, allocations: 156.2 kB / 388.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2394, allocations: 0 / 388.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.616e-05/0.2394, allocations: 2.484 kB / 388.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2394, allocations: 1.562 kB / 388.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.2394, allocations: 3.938 kB / 388.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2395, allocations: 1.234 kB / 388.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2395, allocations: 1.438 kB / 388.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.953e-05/0.2395, allocations: 62.72 kB / 388.4 MB, free: 48.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.431e-05/0.2396, allocations: 79.17 kB / 388.4 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.2396, allocations: 6.172 kB / 388.4 MB, free: 48.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.208e-05/0.2396, allocations: 2.906 kB / 388.5 MB, free: 48.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.226e-05/0.2396, allocations: 1.859 kB / 388.5 MB, free: 48.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.2396, allocations: 0 / 388.5 MB, free: 48.87 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.105e-05/0.2396, allocations: 75.28 kB / 388.5 MB, free: 48.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2396, allocations: 1.312 kB / 388.5 MB, free: 48.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001904/0.2398, allocations: 0 / 388.5 MB, free: 48.8 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 6.477e-05/0.2399, allocations: 102.5 kB / 388.6 MB, free: 48.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.7e-05/0.24, allocations: 11.06 kB / 388.6 MB, free: 48.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.24, allocations: 0 / 388.6 MB, free: 48.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.406e-06/0.24, allocations: 5.812 kB / 388.6 MB, free: 48.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.2401, allocations: 5.359 kB / 388.6 MB, free: 48.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002418/0.2404, allocations: 133.8 kB / 388.8 MB, free: 48.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.256e-05/0.2405, allocations: 0.6757 MB / 389.5 MB, free: 47.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.716e-05/0.2405, allocations: 8.25 kB / 389.5 MB, free: 47.86 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2405, allocations: 0 / 389.5 MB, free: 47.86 MB / 318.1 MB Notification: Performance of Templates: time 0.001642/0.2422, allocations: 381.2 kB / 389.8 MB, free: 47.85 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 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe 2>&1)