Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008066/0.0008066, allocations: 83.66 kB / 16.31 MB, free: 6.449 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.000795/0.0007952, allocations: 179.7 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 223.3 MB / 241.2 MB, free: 5.285 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002359/0.0002359, allocations: 6.719 kB / 300.9 MB, free: 5.637 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1176, allocations: 50.43 MB / 351.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003701/0.1213, allocations: 2.443 MB / 353.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.123, allocations: 0.6744 MB / 354.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001869/0.1232, allocations: 7.938 kB / 354.5 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.1234, allocations: 31.75 kB / 354.5 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.1236, allocations: 75.39 kB / 354.6 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003658/0.124, allocations: 75.91 kB / 354.7 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005147/0.1245, allocations: 346.5 kB / 355 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003428/0.1249, allocations: 93.8 kB / 355.1 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.1252, allocations: 115.5 kB / 355.2 MB, free: 7.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002896/0.1255, allocations: 143.4 kB / 355.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.18e-05/0.1255, allocations: 16 kB / 355.4 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.279e-05/0.1256, allocations: 20 kB / 355.4 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.017e-05/0.1257, allocations: 51.75 kB / 355.4 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.1259, allocations: 85.45 kB / 355.5 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005035/0.1264, allocations: 323.1 kB / 355.8 MB, free: 6.875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.1264, allocations: 3.984 kB / 355.8 MB, free: 6.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.1264, allocations: 0 / 355.8 MB, free: 6.871 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1264, allocations: 4 kB / 355.8 MB, free: 6.867 MB / 286.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.001661/0.1281, allocations: 0.6317 MB / 356.5 MB, free: 6.184 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.1282, allocations: 12.03 kB / 356.5 MB, free: 6.172 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.34e-05/0.1283, allocations: 58.55 kB / 356.5 MB, free: 6.105 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.089e-05/0.1284, allocations: 27.72 kB / 356.6 MB, free: 6.078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004976/0.1289, allocations: 283.4 kB / 356.8 MB, free: 5.758 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.1289, allocations: 24.56 kB / 356.9 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.551e-05/0.129, allocations: 20 kB / 356.9 MB, free: 5.715 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009548/0.1299, allocations: 331.6 kB / 357.2 MB, free: 5.383 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.13, allocations: 0 / 357.2 MB, free: 5.383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.13, allocations: 12 kB / 357.2 MB, free: 5.371 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.13, allocations: 8 kB / 357.2 MB, free: 5.363 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.1311, allocations: 310 kB / 357.5 MB, free: 5.059 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/0.1338, allocations: 1.208 MB / 358.7 MB, free: 3.766 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.135, allocations: 270.6 kB / 359 MB, free: 3.492 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004531/0.1354, allocations: 124.7 kB / 359.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.1355, allocations: 0 / 359.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006947/0.1362, allocations: 188.9 kB / 359.3 MB, free: 3.164 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.843e-06/0.1362, allocations: 0 / 359.3 MB, free: 3.164 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.002631/0.1388, allocations: 0.663 MB / 360 MB, free: 2.473 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/0.1389, allocations: 89.05 kB / 360.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.1394, allocations: 266.5 kB / 360.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.1394, allocations: 33.69 kB / 360.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.1396, allocations: 187.6 kB / 360.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.132e-05/0.1397, allocations: 47.39 kB / 360.6 MB, free: 1.824 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.849e-05/0.1397, allocations: 4 kB / 360.6 MB, free: 1.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1399, allocations: 334.8 kB / 360.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000468/0.1404, allocations: 116.2 kB / 361 MB, free: 1.367 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005349/0.1409, allocations: 203.5 kB / 361.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004828/0.1414, allocations: 161.6 kB / 361.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1415, allocations: 0 / 361.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001631/0.1431, allocations: 481.9 kB / 361.8 MB, free: 492 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.025e-05/0.1432, allocations: 33.7 kB / 361.9 MB, free: 452 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.1432, allocations: 0 / 361.9 MB, free: 452 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004167/0.1436, allocations: 72.88 kB / 361.9 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000326/0.144, allocations: 55.91 kB / 362 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002934/0.1469, allocations: 1.767 MB / 363.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.1473, allocations: 51.81 kB / 363.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.1473, allocations: 12.05 kB / 363.8 MB, free: 14.35 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.0002168/0.1475, allocations: 149.8 kB / 364 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/0.1476, allocations: 19.72 kB / 364 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.944e-05/0.1476, allocations: 29.66 kB / 364 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1477, allocations: 0 / 364 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1477, allocations: 0 / 364 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1477, allocations: 0 / 364 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003604/0.148, allocations: 313.4 kB / 364.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1481, allocations: 0 / 364.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.1483, allocations: 47.89 kB / 364.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002894/0.1486, allocations: 64.83 kB / 364.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.1486, allocations: 3.984 kB / 364.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/0.1511, allocations: 1.546 MB / 366 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1512, allocations: 3.938 kB / 366 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.1531, allocations: 497.5 kB / 366.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.931e-05/0.1532, allocations: 96.94 kB / 366.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.791e-05/0.1532, allocations: 3.953 kB / 366.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003183/0.1536, allocations: 48.02 kB / 366.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.1537, allocations: 19.91 kB / 366.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.1537, allocations: 4 kB / 366.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002902/0.154, allocations: 194 kB / 366.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.154, allocations: 0 / 366.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006046/0.1546, allocations: 71.69 kB / 366.9 MB, free: 11.04 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.002329/0.157, allocations: 1.045 MB / 368 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001723/0.1587, allocations: 0.5018 MB / 368.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1587, allocations: 0 / 368.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006157/0.1594, allocations: 231.2 kB / 368.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.1599, allocations: 52.45 kB / 368.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008038/0.1679, allocations: 2.166 MB / 370.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.1684, allocations: 0.7518 MB / 371.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001968/0.1686, allocations: 26.28 kB / 371.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.1688, allocations: 79.34 kB / 371.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1688, allocations: 0 / 371.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.1882, allocations: 5.5 MB / 377.3 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.1885, allocations: 213 kB / 377.5 MB, free: 488 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.066/2.255, allocations: 0 / 377.5 MB, free: 488 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat