Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Adder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001314/0.001314, allocations: 95.45 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001621/0.001621, allocations: 209.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.563/1.563, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002495, allocations: 8 kB / 306.7 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 51.5 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.00349/0.131, allocations: 2.599 MB / 360.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.1328, allocations: 0.7875 MB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004031/0.1332, allocations: 4 kB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.1334, allocations: 39.67 kB / 361.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005212/0.1339, allocations: 127.6 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.1343, allocations: 79.89 kB / 361.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005728/0.1349, allocations: 291.1 kB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002741/0.1352, allocations: 119 kB / 362.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.1356, allocations: 139.5 kB / 362.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003109/0.1359, allocations: 147.3 kB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.882e-05/0.136, allocations: 20 kB / 362.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.1361, allocations: 24 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.163e-05/0.1362, allocations: 59.75 kB / 362.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.999e-05/0.1363, allocations: 89.52 kB / 362.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.1367, allocations: 399.1 kB / 363.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1367, allocations: 4 kB / 363.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1367, allocations: 0 / 363.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.1367, allocations: 0 / 363.1 MB, free: 9.062 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001187/0.1379, allocations: 0.6118 MB / 363.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.138, allocations: 12.03 kB / 363.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000125/0.1381, allocations: 70.53 kB / 363.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002346/0.1383, allocations: 43.62 kB / 363.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.1389, allocations: 298.4 kB / 364.1 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.1389, allocations: 20.66 kB / 364.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.139, allocations: 32 kB / 364.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/0.1397, allocations: 349 kB / 364.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.1398, allocations: 3.984 kB / 364.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.1398, allocations: 16 kB / 364.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.1398, allocations: 8 kB / 364.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006777/0.1405, allocations: 278.5 kB / 364.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.143, allocations: 1.28 MB / 366.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006911/0.1437, allocations: 299.8 kB / 366.4 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.1438, allocations: 8 kB / 366.4 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.1438, allocations: 30.56 kB / 366.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/0.1438, allocations: 0 / 366.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.00235/0.1462, allocations: 0.6849 MB / 367.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.1463, allocations: 51.41 kB / 367.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004127/0.1467, allocations: 298.9 kB / 367.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.1467, allocations: 25.7 kB / 367.5 MB, free: 4.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.1469, allocations: 219.7 kB / 367.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.291e-05/0.147, allocations: 55.33 kB / 367.8 MB, free: 4.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.355e-05/0.147, allocations: 0 / 367.8 MB, free: 4.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.1473, allocations: 346.8 kB / 368.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.1475, allocations: 75.97 kB / 368.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.1478, allocations: 166.2 kB / 368.3 MB, free: 3.512 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.148, allocations: 103.8 kB / 368.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.148, allocations: 0 / 368.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001021/0.1491, allocations: 424.3 kB / 368.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.1491, allocations: 16 kB / 368.9 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1491, allocations: 3.984 kB / 368.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004758/0.1496, allocations: 104.8 kB / 369 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1498, allocations: 43.97 kB / 369 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.1528, allocations: 2.026 MB / 371 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.1531, allocations: 43.66 kB / 371.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.1531, allocations: 16.53 kB / 371.1 MB, free: 0.6016 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * 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: 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002213/0.1533, allocations: 149.7 kB / 371.2 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.457e-05/0.1534, allocations: 31.66 kB / 371.3 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.48e-05/0.1535, allocations: 29.91 kB / 371.3 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1535, allocations: 0 / 371.3 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1535, allocations: 4 kB / 371.3 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.1535, allocations: 0 / 371.3 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2589/0.4123, allocations: 0.7336 MB / 372 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.4124, allocations: 0 / 372 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.642e-05/0.4125, allocations: 15.78 kB / 372.1 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000428/0.4129, allocations: 111.2 kB / 372.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.4129, allocations: 3.875 kB / 372.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/0.4157, allocations: 2.018 MB / 374.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.4157, allocations: 0.75 kB / 374.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009744/0.4167, allocations: 431.1 kB / 374.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.497e-05/0.4168, allocations: 104.8 kB / 374.7 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.4168, allocations: 9.25 kB / 374.7 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.417, allocations: 30.47 kB / 374.7 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.4171, allocations: 13.59 kB / 374.8 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.4171, allocations: 4.734 kB / 374.8 MB, free: 17.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002521/0.4174, allocations: 209.6 kB / 375 MB, free: 17.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4174, allocations: 1.094 kB / 375 MB, free: 17.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005721/0.4179, allocations: 92.42 kB / 375.1 MB, free: 17.72 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 (8): * 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: 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001284/0.4192, allocations: 0.9625 MB / 376 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000789/0.42, allocations: 349 kB / 376.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4201, allocations: 3.719 kB / 376.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004006/0.4205, allocations: 227.9 kB / 376.6 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.4208, allocations: 37.31 kB / 376.6 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.4243, allocations: 3.454 MB / 380.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.4246, allocations: 0.776 MB / 380.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.4247, allocations: 25.48 kB / 380.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.4249, allocations: 96.02 kB / 381 MB, free: 13.66 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4249, allocations: 0 / 381 MB, free: 13.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/0.4449, allocations: 5.874 MB / 386.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/0.4451, allocations: 207.2 kB / 387.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.329, allocations: 1.188 kB / 387.1 MB, free: 12.59 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat does not exist to compare? outputFormat=mat