Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 99.67 kB / 17.01 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 193.4 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002426/0.0002427, allocations: 8 kB / 306.8 MB, free: 1.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1302, allocations: 51.5 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003097/0.1334, allocations: 2.455 MB / 360.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.1346, allocations: 0.7055 MB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.1348, allocations: 7.938 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1349, allocations: 39.75 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.1351, allocations: 79.38 kB / 361.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.1353, allocations: 67.92 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003358/0.1357, allocations: 346.5 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.1359, allocations: 97.73 kB / 362.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002465/0.1362, allocations: 131.5 kB / 362.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.1364, allocations: 135.4 kB / 362.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.1364, allocations: 20 kB / 362.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.194e-05/0.1365, allocations: 20 kB / 362.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.927e-05/0.1365, allocations: 55.7 kB / 362.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.571e-05/0.1366, allocations: 73.58 kB / 362.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.1369, allocations: 331.3 kB / 362.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1369, allocations: 0 / 362.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1369, allocations: 0 / 362.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.1369, allocations: 4 kB / 362.9 MB, free: 9.156 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.00113/0.1381, allocations: 0.6292 MB / 363.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1381, allocations: 8.031 kB / 363.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.663e-05/0.1382, allocations: 58.55 kB / 363.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.643e-05/0.1383, allocations: 35.61 kB / 363.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003329/0.1386, allocations: 287.5 kB / 363.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.1386, allocations: 12.56 kB / 363.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.713e-05/0.1387, allocations: 24 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006595/0.1393, allocations: 331.6 kB / 364.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.517e-06/0.1394, allocations: 0 / 364.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.1394, allocations: 12 kB / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.1394, allocations: 11.94 kB / 364.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007633/0.1402, allocations: 306 kB / 364.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.1421, allocations: 1.22 MB / 365.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/0.1429, allocations: 270.6 kB / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000297/0.1432, allocations: 112.8 kB / 366.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.1433, allocations: 8 kB / 366.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004474/0.1437, allocations: 188.9 kB / 366.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.1437, allocations: 0 / 366.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001885/0.1456, allocations: 0.6668 MB / 367 MB, free: 4.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.1457, allocations: 85.09 kB / 367.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.146, allocations: 254.6 kB / 367.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.146, allocations: 29.7 kB / 367.4 MB, free: 4.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.1461, allocations: 195.5 kB / 367.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.1462, allocations: 43.45 kB / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.1462, allocations: 4 kB / 367.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.1463, allocations: 334.8 kB / 367.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/0.1467, allocations: 116.2 kB / 368.1 MB, free: 3.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.1471, allocations: 200.6 kB / 368.2 MB, free: 3.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003522/0.1474, allocations: 157.6 kB / 368.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1474, allocations: 0 / 368.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001125/0.1486, allocations: 483.7 kB / 368.9 MB, free: 2.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.1486, allocations: 37.66 kB / 368.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1486, allocations: 4 kB / 368.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000302/0.1489, allocations: 72.88 kB / 369 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.1492, allocations: 55.91 kB / 369 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002368/0.1515, allocations: 1.76 MB / 370.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.1519, allocations: 55.94 kB / 370.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.1519, allocations: 19.92 kB / 370.9 MB, free: 0.625 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 (25): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.1521, allocations: 145.7 kB / 371 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.603e-05/0.1521, allocations: 31.72 kB / 371 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.438e-05/0.1522, allocations: 21.7 kB / 371.1 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1522, allocations: 4 kB / 371.1 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1522, allocations: 0 / 371.1 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1522, allocations: 3.938 kB / 371.1 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.1525, allocations: 313.3 kB / 371.4 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1525, allocations: 0 / 371.4 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.1527, allocations: 39.95 kB / 371.4 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2672/0.4199, allocations: 60.31 kB / 371.5 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.42, allocations: 4.625 kB / 371.5 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001836/0.4219, allocations: 1.535 MB / 373 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4219, allocations: 0 / 373 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.4233, allocations: 0.4986 MB / 373.5 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.517e-05/0.4234, allocations: 101.4 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.804e-05/0.4234, allocations: 5.062 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.4237, allocations: 43.7 kB / 373.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.146e-05/0.4238, allocations: 17.72 kB / 373.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.4238, allocations: 3.188 kB / 373.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002487/0.424, allocations: 186.8 kB / 373.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4241, allocations: 0 / 373.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004638/0.4245, allocations: 76.59 kB / 373.9 MB, free: 18.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.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 (11): * Single equations (assignments): 8 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00162/0.4262, allocations: 1.034 MB / 375 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.4275, allocations: 0.5001 MB / 375.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4275, allocations: 0.8125 kB / 375.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.428, allocations: 234.1 kB / 375.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003693/0.4284, allocations: 39.61 kB / 375.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005823/0.4342, allocations: 2.176 MB / 377.9 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.4344, allocations: 0.7503 MB / 378.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.4346, allocations: 26.66 kB / 378.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.4348, allocations: 77.12 kB / 378.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4348, allocations: 0 / 378.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.4571, allocations: 5.499 MB / 384.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/0.4573, allocations: 218.3 kB / 384.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.498, allocations: 0 / 384.5 MB, free: 14.72 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat