Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_trunk_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.001115/0.001114, allocations: 95.44 kB / 17 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 193.3 kB / 17.91 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.000257, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1382, allocations: 51.49 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.003223/0.1415, allocations: 2.455 MB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.143, allocations: 0.7133 MB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.1432, allocations: 7.938 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.1434, allocations: 27.77 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.1436, allocations: 79.38 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.1439, allocations: 67.92 kB / 361.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003924/0.1443, allocations: 346.5 kB / 362 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.1446, allocations: 105.7 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.1449, allocations: 127.5 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.1451, allocations: 135.4 kB / 362.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.1451, allocations: 16 kB / 362.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.955e-05/0.1452, allocations: 16 kB / 362.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.86e-05/0.1452, allocations: 55.75 kB / 362.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.866e-05/0.1453, allocations: 85.5 kB / 362.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003173/0.1456, allocations: 319.3 kB / 362.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.1457, allocations: 0 / 362.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1457, allocations: 4 kB / 362.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1457, allocations: 4 kB / 362.9 MB, free: 9.398 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.001315/0.147, allocations: 0.6301 MB / 363.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.1471, allocations: 8.031 kB / 363.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.92e-05/0.1472, allocations: 58.55 kB / 363.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.392e-05/0.1472, allocations: 31.62 kB / 363.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.1477, allocations: 287.5 kB / 363.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.1477, allocations: 20.56 kB / 363.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.949e-05/0.1478, allocations: 24 kB / 363.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007541/0.1486, allocations: 335.6 kB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1486, allocations: 0 / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.1486, allocations: 8 kB / 364.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.1487, allocations: 4 kB / 364.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007922/0.1495, allocations: 313.9 kB / 364.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.1514, allocations: 1.139 MB / 365.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008936/0.1523, allocations: 278.6 kB / 366 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.1526, allocations: 116.8 kB / 366.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.1527, allocations: 0 / 366.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004962/0.1532, allocations: 192.9 kB / 366.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.1532, allocations: 0 / 366.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001012/0.1542, allocations: 361.1 kB / 366.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1543, allocations: 85.05 kB / 366.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.1546, allocations: 258.6 kB / 367 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.1546, allocations: 33.7 kB / 367 MB, free: 4.996 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.1548, allocations: 195.5 kB / 367.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/0.1548, allocations: 39.44 kB / 367.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.411e-05/0.1549, allocations: 8 kB / 367.2 MB, free: 4.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.155, allocations: 330.8 kB / 367.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003263/0.1553, allocations: 124.1 kB / 367.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/0.1557, allocations: 200.6 kB / 367.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003981/0.1562, allocations: 153.6 kB / 368 MB, free: 3.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1562, allocations: 0 / 368 MB, free: 3.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008743/0.157, allocations: 397.3 kB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/0.1571, allocations: 33.7 kB / 368.4 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.1571, allocations: 4 kB / 368.4 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.1571, allocations: 4 kB / 368.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003002/0.1575, allocations: 75.94 kB / 368.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.1575, allocations: 4 kB / 368.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.1578, allocations: 63.67 kB / 368.6 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.1578, allocations: 15.94 kB / 368.6 MB, free: 3.305 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.158, allocations: 149.7 kB / 368.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.1581, allocations: 19.81 kB / 368.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.129e-05/0.1581, allocations: 25.7 kB / 368.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1581, allocations: 4 kB / 368.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1581, allocations: 0 / 368.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1582, allocations: 0 / 368.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.1585, allocations: 313.3 kB / 369.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1585, allocations: 4 kB / 369.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/0.1587, allocations: 47.95 kB / 369.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1588, allocations: 4 kB / 369.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.1588, allocations: 4 kB / 369.2 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1588, allocations: 0 / 369.2 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1588, allocations: 3.984 kB / 369.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.1599, allocations: 416.5 kB / 369.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.705e-05/0.16, allocations: 100.9 kB / 369.7 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.653e-05/0.1601, allocations: 8 kB / 369.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.1603, allocations: 40.02 kB / 369.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.1605, allocations: 15.98 kB / 369.7 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.1605, allocations: 3.984 kB / 369.7 MB, free: 2.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002434/0.1607, allocations: 190 kB / 369.9 MB, free: 1.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1607, allocations: 0 / 369.9 MB, free: 1.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003963/0.1611, allocations: 71.69 kB / 370 MB, free: 1.812 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001616/0.1628, allocations: 0.9402 MB / 370.9 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009399/0.1637, allocations: 323.2 kB / 371.2 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.1638, allocations: 0 / 371.2 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003504/0.1641, allocations: 124.4 kB / 371.4 MB, free: 400 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.1647, allocations: 47.17 kB / 371.4 MB, free: 356 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2392/0.4038, allocations: 1.713 MB / 373.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.4042, allocations: 0.746 MB / 373.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00018/0.4044, allocations: 31.67 kB / 373.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.4046, allocations: 76.19 kB / 374 MB, free: 18.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4046, allocations: 0 / 374 MB, free: 18.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.4235, allocations: 4.906 MB / 378.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/0.4237, allocations: 196.5 kB / 379.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/2.425, allocations: 2.688 kB / 379.1 MB, free: 18.16 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat