Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001234/0.00124, allocations: 95.77 kB / 16.3 MB, free: 6.133 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.001583/0.001583, allocations: 179 kB / 17.2 MB, free: 6.016 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.431/1.431, allocations: 223.2 MB / 241.1 MB, free: 296 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002743/0.0002743, allocations: 8 kB / 300.8 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1277, allocations: 50.42 MB / 351.2 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.003383/0.1312, allocations: 2.57 MB / 353.8 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.1325, allocations: 0.7407 MB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.1326, allocations: 7.938 kB / 354.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.581e-05/0.1327, allocations: 47.67 kB / 354.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.133, allocations: 119.7 kB / 354.7 MB, free: 420 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002586/0.1332, allocations: 75.84 kB / 354.8 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.1336, allocations: 287.4 kB / 355.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.1339, allocations: 127 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.1341, allocations: 127.5 kB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.1343, allocations: 143.3 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.1344, allocations: 20 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.893e-05/0.1344, allocations: 20 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.827e-05/0.1345, allocations: 59.75 kB / 355.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.357e-05/0.1346, allocations: 93.52 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.135, allocations: 395.1 kB / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.135, allocations: 4 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.135, allocations: 0 / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.135, allocations: 0 / 356.1 MB, free: 15.07 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.0009712/0.136, allocations: 0.604 MB / 356.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.136, allocations: 12.03 kB / 356.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.909e-05/0.1361, allocations: 66.53 kB / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.725e-05/0.1362, allocations: 35.62 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.1366, allocations: 298.3 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.1366, allocations: 24.66 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.1366, allocations: 36 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000639/0.1373, allocations: 353 kB / 357.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1373, allocations: 0 / 357.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.1374, allocations: 12 kB / 357.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.587e-06/0.1374, allocations: 8 kB / 357.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005848/0.138, allocations: 274.5 kB / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.14, allocations: 1.288 MB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.1407, allocations: 307.7 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.1407, allocations: 3.938 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.1407, allocations: 30.56 kB / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.264e-06/0.1408, allocations: 4 kB / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002171/0.1429, allocations: 0.6788 MB / 360.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.143, allocations: 51.41 kB / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003325/0.1433, allocations: 298.9 kB / 360.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.1434, allocations: 29.7 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.1435, allocations: 219.8 kB / 360.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.624e-05/0.1436, allocations: 51.28 kB / 360.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/0.1436, allocations: 8 kB / 360.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.1437, allocations: 330.8 kB / 361 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.1439, allocations: 83.89 kB / 361.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.1442, allocations: 162.2 kB / 361.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.1444, allocations: 106.6 kB / 361.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.1444, allocations: 4 kB / 361.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009466/0.1454, allocations: 422 kB / 361.8 MB, free: 9.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1454, allocations: 4 kB / 361.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1454, allocations: 7.938 kB / 361.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004277/0.1458, allocations: 108.8 kB / 361.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.146, allocations: 39.98 kB / 361.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003152/0.1492, allocations: 2.03 MB / 364 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/0.1494, allocations: 43.58 kB / 364 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.1495, allocations: 16 kB / 364 MB, free: 6.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: 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.0001713/0.1496, allocations: 149.7 kB / 364.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.167e-05/0.1497, allocations: 27.7 kB / 364.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.954e-05/0.1498, allocations: 25.92 kB / 364.2 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1498, allocations: 4 kB / 364.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.1498, allocations: 3.984 kB / 364.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1498, allocations: 3.953 kB / 364.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.1511, allocations: 0.7404 MB / 365 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1511, allocations: 8 kB / 365 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.304e-05/0.1512, allocations: 15.92 kB / 365 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003434/0.1515, allocations: 104.8 kB / 365.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1516, allocations: 15.92 kB / 365.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00272/0.1543, allocations: 2.007 MB / 367.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1543, allocations: 0 / 367.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008775/0.1552, allocations: 435.8 kB / 367.6 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.132e-05/0.1553, allocations: 96.83 kB / 367.6 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.393e-05/0.1553, allocations: 11.98 kB / 367.7 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.1555, allocations: 27.97 kB / 367.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.998e-05/0.1556, allocations: 15.92 kB / 367.7 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.1556, allocations: 7.953 kB / 367.7 MB, free: 2.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.1559, allocations: 206 kB / 367.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1559, allocations: 4 kB / 367.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.1564, allocations: 91.78 kB / 368 MB, free: 2.406 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.001239/0.1576, allocations: 0.9627 MB / 369 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007155/0.1583, allocations: 346.5 kB / 369.3 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1583, allocations: 0 / 369.3 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000365/0.1587, allocations: 235 kB / 369.5 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.159, allocations: 43.78 kB / 369.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2026/0.3616, allocations: 3.439 MB / 373 MB, free: 21.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.362, allocations: 0.7771 MB / 373.8 MB, free: 21.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002072/0.3622, allocations: 24.38 kB / 373.8 MB, free: 21.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.3624, allocations: 92.95 kB / 373.9 MB, free: 21.26 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3624, allocations: 0.5 kB / 373.9 MB, free: 21.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.3832, allocations: 5.884 MB / 379.8 MB, free: 20.87 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.3834, allocations: 209.9 kB / 380 MB, free: 20.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.996/2.379, allocations: 0 / 380 MB, free: 20.63 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat does not exist to compare? outputFormat=mat