Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007613/0.0007614, allocations: 98.91 kB / 17.01 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008861/0.0008862, allocations: 194.3 kB / 17.91 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003217/0.0003217, allocations: 8 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.003876/0.1256, allocations: 2.899 MB / 361.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.1271, allocations: 0.8146 MB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.1273, allocations: 8 kB / 362 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.1275, allocations: 51.61 kB / 362.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002391/0.1278, allocations: 95.23 kB / 362.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003377/0.1281, allocations: 91.77 kB / 362.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.1286, allocations: 450.1 kB / 362.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.1289, allocations: 136.3 kB / 362.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003168/0.1292, allocations: 159.4 kB / 363 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.1295, allocations: 167.2 kB / 363.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.1295, allocations: 24 kB / 363.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.84e-05/0.1296, allocations: 24 kB / 363.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.916e-05/0.1297, allocations: 59.75 kB / 363.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1298, allocations: 101.5 kB / 363.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004805/0.1303, allocations: 450.9 kB / 363.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1303, allocations: 0 / 363.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1303, allocations: 0 / 363.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.1303, allocations: 0 / 363.8 MB, free: 8.234 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001161/0.1315, allocations: 0.6511 MB / 364.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1316, allocations: 8.031 kB / 364.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.122e-05/0.1317, allocations: 74.53 kB / 364.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.1319, allocations: 63.42 kB / 364.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.1323, allocations: 303.5 kB / 364.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.1324, allocations: 29 kB / 364.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.1324, allocations: 32 kB / 365 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.1332, allocations: 394.1 kB / 365.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1332, allocations: 0 / 365.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.1332, allocations: 16 kB / 365.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1333, allocations: 8 kB / 365.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006242/0.1339, allocations: 303.9 kB / 365.7 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.1362, allocations: 1.467 MB / 367.1 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.1368, allocations: 242.8 kB / 367.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.137, allocations: 100.8 kB / 367.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.1371, allocations: 4 kB / 367.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.1371, allocations: 38.5 kB / 367.5 MB, free: 4.316 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.1371, allocations: 0 / 367.5 MB, free: 4.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002201/0.1393, allocations: 0.808 MB / 368.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.1394, allocations: 55.41 kB / 368.4 MB, free: 3.395 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.1398, allocations: 311.2 kB / 368.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.1399, allocations: 29.7 kB / 368.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.1401, allocations: 219.7 kB / 368.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.1401, allocations: 67.08 kB / 369 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.516e-05/0.1401, allocations: 8 kB / 369 MB, free: 2.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1403, allocations: 342.8 kB / 369.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.1405, allocations: 83.95 kB / 369.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.1408, allocations: 169.3 kB / 369.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.141, allocations: 106.7 kB / 369.7 MB, free: 2.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.141, allocations: 4 kB / 369.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009518/0.142, allocations: 438.8 kB / 370.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.142, allocations: 12 kB / 370.1 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1421, allocations: 0 / 370.1 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.1425, allocations: 125.6 kB / 370.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.1427, allocations: 39.92 kB / 370.3 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2402/0.3829, allocations: 3.306 MB / 373.6 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/0.3833, allocations: 38.94 kB / 373.6 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.3834, allocations: 12.75 kB / 373.6 MB, free: 17.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002893/0.3837, allocations: 153.5 kB / 373.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.3838, allocations: 28.67 kB / 373.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.1e-05/0.3838, allocations: 29.86 kB / 373.9 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3838, allocations: 4.859 kB / 373.9 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.3839, allocations: 4.891 kB / 373.9 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.3839, allocations: 0.8438 kB / 373.9 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006102/0.3845, allocations: 370.6 kB / 374.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3845, allocations: 0 / 374.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.943e-05/0.3846, allocations: 15.25 kB / 374.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000452/0.3851, allocations: 119.9 kB / 374.4 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.3851, allocations: 3.188 kB / 374.4 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003439/0.3885, allocations: 3.198 MB / 377.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3886, allocations: 0 / 377.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.3896, allocations: 457.7 kB / 378 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-05/0.3897, allocations: 107.1 kB / 378.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.3898, allocations: 4.547 kB / 378.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.39, allocations: 28.19 kB / 378.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.3901, allocations: 18.33 kB / 378.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.3901, allocations: 5.734 kB / 378.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.3905, allocations: 220.7 kB / 378.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3905, allocations: 0.9062 kB / 378.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006428/0.3911, allocations: 97.44 kB / 378.5 MB, free: 13.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001114/0.3922, allocations: 0.9894 MB / 379.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.3934, allocations: 0.5246 MB / 380 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3934, allocations: 0 / 380 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004535/0.3939, allocations: 346.6 kB / 380.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005115/0.3944, allocations: 50.11 kB / 380.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.398, allocations: 1.885 MB / 382.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.3984, allocations: 0.7765 MB / 383 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001684/0.3986, allocations: 30.09 kB / 383.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.3987, allocations: 98.33 kB / 383.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3987, allocations: 4 kB / 383.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.4224, allocations: 6.374 MB / 389.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/0.4226, allocations: 225.1 kB / 389.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.015/2.438, allocations: 4 kB / 389.8 MB, free: 9.383 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat does not exist to compare? outputFormat=mat