Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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) 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(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0138/0.01381, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002571/0.002571, allocations: 193.7 kB / 16.67 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.016/2.016, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 51.92 kB / 326.6 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1265, allocations: 46.61 MB / 373.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.005283/0.1319, allocations: 2.593 MB / 375.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.1339, allocations: 0.7057 MB / 376.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004444/0.1344, allocations: 4 kB / 376.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003014/0.1347, allocations: 43.58 kB / 376.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005181/0.1353, allocations: 87.31 kB / 376.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/0.1358, allocations: 95.81 kB / 376.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005371/0.1363, allocations: 326.5 kB / 377 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.1367, allocations: 84.69 kB / 377.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003812/0.137, allocations: 131.5 kB / 377.2 MB, free: 472 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003271/0.1374, allocations: 135.4 kB / 377.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.495e-05/0.1375, allocations: 32 kB / 377.4 MB, free: 304 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.799e-05/0.1376, allocations: 28 kB / 377.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.683e-05/0.1377, allocations: 63.7 kB / 377.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.1379, allocations: 135.4 kB / 377.6 MB, free: 76 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3016/0.4396, allocations: 295.9 kB / 377.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.099e-05/0.4396, allocations: 2.156 kB / 377.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4396, allocations: 0 / 377.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.4397, allocations: 1.375 kB / 377.9 MB, free: 10.45 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001485/0.4412, allocations: 0.6116 MB / 378.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.4412, allocations: 10.19 kB / 378.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.432e-05/0.4413, allocations: 27.22 kB / 378.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.4419, allocations: 267.9 kB / 378.8 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.4419, allocations: 15.56 kB / 378.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.003e-05/0.442, allocations: 18.28 kB / 378.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007915/0.4428, allocations: 237.6 kB / 379.1 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.4428, allocations: 3.938 kB / 379.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.4429, allocations: 8.906 kB / 379.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.4429, allocations: 5.375 kB / 379.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009871/0.4439, allocations: 251 kB / 379.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.4458, allocations: 0.8096 MB / 380.2 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.447, allocations: 231.9 kB / 380.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003979/0.4474, allocations: 92.97 kB / 380.5 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.4474, allocations: 1.375 kB / 380.5 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005696/0.448, allocations: 163.7 kB / 380.7 MB, free: 9.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.164e-06/0.448, allocations: 0 / 380.7 MB, free: 9.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.00126/0.4493, allocations: 298.7 kB / 380.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.4493, allocations: 79.98 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.4497, allocations: 244.9 kB / 381.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.4497, allocations: 27.72 kB / 381.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.4499, allocations: 164.2 kB / 381.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.4499, allocations: 43.55 kB / 381.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.633e-05/0.45, allocations: 46.75 kB / 381.5 MB, free: 8.781 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.937e-05/0.4501, allocations: 328.6 kB / 381.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003345/0.4505, allocations: 92.72 kB / 381.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.4509, allocations: 148.1 kB / 382.1 MB, free: 8.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006686/0.4515, allocations: 248.9 kB / 382.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.4516, allocations: 0.5625 kB / 382.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001131/0.4527, allocations: 308.7 kB / 382.6 MB, free: 8.219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.635e-05/0.4528, allocations: 33.94 kB / 382.7 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.4528, allocations: 7.344 kB / 382.7 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.404e-05/0.4529, allocations: 7.281 kB / 382.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004127/0.4533, allocations: 59.19 kB / 382.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.144e-05/0.4533, allocations: 4.562 kB / 382.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.4537, allocations: 39.03 kB / 382.8 MB, free: 8.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.4538, allocations: 7.375 kB / 382.8 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004528/0.4542, allocations: 180.8 kB / 383 MB, free: 8.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003682/0.4546, allocations: 133.3 kB / 383.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006261/0.4552, allocations: 220.5 kB / 383.3 MB, free: 7.934 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.4553, allocations: 5.812 kB / 383.3 MB, free: 7.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0007749/0.456, allocations: 292.7 kB / 383.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.533e-05/0.4561, allocations: 33.03 kB / 383.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.4561, allocations: 3.125 kB / 383.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.4561, allocations: 2.5 kB / 383.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.4564, allocations: 55.95 kB / 383.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.4564, allocations: 4.812 kB / 383.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003244/0.4567, allocations: 37.33 kB / 383.7 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.4568, allocations: 6.609 kB / 383.7 MB, free: 7.805 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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 0.0001966/0.457, allocations: 198.9 kB / 383.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.812e-05/0.457, allocations: 25.88 kB / 384 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.814e-05/0.4571, allocations: 25.28 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.4571, allocations: 0 / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.4572, allocations: 2.688 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.4572, allocations: 0.75 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004646/0.4576, allocations: 287.2 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4577, allocations: 1.438 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.4579, allocations: 41.31 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.458, allocations: 5.984 kB / 384.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.458, allocations: 7.891 kB / 384.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.458, allocations: 3.375 kB / 384.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.458, allocations: 0 / 384.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.4592, allocations: 344.5 kB / 384.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-05/0.4594, allocations: 99.03 kB / 384.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.288e-05/0.4594, allocations: 5.594 kB / 384.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.4597, allocations: 25.8 kB / 384.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.4598, allocations: 16.83 kB / 384.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.4598, allocations: 3.516 kB / 384.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002589/0.4601, allocations: 178.9 kB / 385 MB, free: 7.113 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4601, allocations: 1 kB / 385 MB, free: 7.113 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005766/0.4607, allocations: 102.8 kB / 385.1 MB, free: 7.09 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002349/0.4609, allocations: 104.2 kB / 385.2 MB, free: 7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.4623, allocations: 434.9 kB / 385.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4623, allocations: 0 / 385.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003959/0.4627, allocations: 91.45 kB / 385.7 MB, free: 6.781 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005061/0.4632, allocations: 49.08 kB / 385.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.4649, allocations: 482.3 kB / 386.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.4653, allocations: 0.7403 MB / 387 MB, free: 5.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.4654, allocations: 30.69 kB / 387 MB, free: 5.766 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.616e-05/0.4655, allocations: 19.28 kB / 387 MB, free: 5.762 MB / 318.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4655, allocations: 1.094 kB / 387 MB, free: 5.762 MB / 318.1 MB Notification: Performance of Templates: time 0.01186/0.4774, allocations: 2.995 MB / 390 MB, free: 5.551 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1)