Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001689/0.001689, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.613/1.613, allocations: 227.7 MB / 247 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 68.08 kB / 307.3 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.127, allocations: 50.55 MB / 357.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.005469/0.1325, allocations: 2.867 MB / 360.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.1346, allocations: 0.7596 MB / 361.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.1349, allocations: 4 kB / 361.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.1351, allocations: 43.52 kB / 361.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.1353, allocations: 95.23 kB / 361.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.1357, allocations: 115.8 kB / 361.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005165/0.1362, allocations: 390.6 kB / 362.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002777/0.1365, allocations: 123.2 kB / 362.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.1368, allocations: 163.4 kB / 362.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.1371, allocations: 163.2 kB / 362.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.284e-05/0.1372, allocations: 40 kB / 362.6 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.07e-05/0.1372, allocations: 40 kB / 362.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.621e-05/0.1373, allocations: 71.77 kB / 362.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.1375, allocations: 175.2 kB / 362.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005431/0.1381, allocations: 418.9 kB / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1381, allocations: 0 / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1381, allocations: 0 / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.1381, allocations: 0 / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001581/0.1397, allocations: 0.6575 MB / 364 MB, free: 7.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.735e-05/0.1398, allocations: 12.03 kB / 364 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.1399, allocations: 62.72 kB / 364.1 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.229e-05/0.14, allocations: 32.56 kB / 364.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.1405, allocations: 288.6 kB / 364.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.1405, allocations: 24.94 kB / 364.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.1406, allocations: 24.38 kB / 364.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007631/0.1413, allocations: 319.7 kB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1414, allocations: 0 / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.1414, allocations: 8 kB / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.1414, allocations: 8 kB / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008159/0.1422, allocations: 278 kB / 365 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.1442, allocations: 1.115 MB / 366.1 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009369/0.1452, allocations: 250.5 kB / 366.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000349/0.1455, allocations: 100.8 kB / 366.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.1456, allocations: 4 kB / 366.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005417/0.1461, allocations: 165 kB / 366.6 MB, free: 4.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.074e-06/0.1461, allocations: 0 / 366.6 MB, free: 4.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001107/0.1472, allocations: 321.1 kB / 367 MB, free: 4.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.522e-05/0.1474, allocations: 81.11 kB / 367 MB, free: 4.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.1477, allocations: 270.6 kB / 367.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.1477, allocations: 25.7 kB / 367.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.1479, allocations: 203.5 kB / 367.5 MB, free: 3.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/0.1479, allocations: 35.53 kB / 367.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-05/0.148, allocations: 49.61 kB / 367.6 MB, free: 3.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000218/0.1483, allocations: 334.8 kB / 367.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003683/0.1486, allocations: 104.2 kB / 368 MB, free: 3.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004792/0.1491, allocations: 195.5 kB / 368.2 MB, free: 3.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007429/0.1499, allocations: 295.8 kB / 368.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.1499, allocations: 0 / 368.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009335/0.1508, allocations: 358.6 kB / 368.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.291e-05/0.1509, allocations: 41.69 kB / 368.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.1509, allocations: 0 / 368.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.1509, allocations: 8.344 kB / 368.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.1512, allocations: 63.89 kB / 369 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.1513, allocations: 7.938 kB / 369 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.1516, allocations: 51.73 kB / 369 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.1516, allocations: 15.94 kB / 369 MB, free: 2.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (26): * Single equations (assignments): 25 * 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.0001764/0.1518, allocations: 156 kB / 369.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.149e-05/0.1519, allocations: 23.72 kB / 369.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.191e-05/0.1519, allocations: 25.7 kB / 369.2 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.152, allocations: 4 kB / 369.2 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.152, allocations: 0 / 369.2 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.152, allocations: 3.938 kB / 369.3 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003574/0.1523, allocations: 305.5 kB / 369.6 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1524, allocations: 4 kB / 369.6 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.1526, allocations: 47.95 kB / 369.6 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1526, allocations: 4 kB / 369.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.1526, allocations: 0 / 369.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.1527, allocations: 0 / 369.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1527, allocations: 0 / 369.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.1538, allocations: 380.8 kB / 370 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.207e-05/0.1539, allocations: 104.8 kB / 370.1 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.1539, allocations: 0 / 370.1 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.1542, allocations: 36.03 kB / 370.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/0.1543, allocations: 19.86 kB / 370.1 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.1543, allocations: 7.984 kB / 370.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.1545, allocations: 190 kB / 370.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1545, allocations: 0 / 370.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003114/0.1548, allocations: 63.84 kB / 370.4 MB, free: 0.8086 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.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 (12): * Single equations (assignments): 10 * 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.221/0.3758, allocations: 0.8975 MB / 371.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009841/0.3768, allocations: 300.8 kB / 371.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3769, allocations: 0 / 371.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000364/0.3772, allocations: 103.6 kB / 371.7 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004676/0.3777, allocations: 43.62 kB / 371.7 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005084/0.3828, allocations: 2.909 MB / 374.6 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.3831, allocations: 0.7501 MB / 375.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001648/0.3833, allocations: 24.27 kB / 375.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.3834, allocations: 79.78 kB / 375.5 MB, free: 17.49 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3834, allocations: 4.625 kB / 375.5 MB, free: 17.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03672/0.4202, allocations: 5.46 MB / 380.9 MB, free: 16.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.09/8.51, allocations: 8.688 kB / 381 MB, free: 16.95 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1)