Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",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.001214/0.001214, allocations: 95 kB / 16.3 MB, free: 5.996 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.001307/0.001307, allocations: 188.2 kB / 17.2 MB, free: 5.91 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.553/1.553, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002954/0.0002955, allocations: 8.406 kB / 300.8 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003204/0.119, allocations: 2.393 MB / 353.6 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.1203, allocations: 0.7095 MB / 354.3 MB, free: 8.539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.1205, allocations: 4 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.586e-05/0.1206, allocations: 35.75 kB / 354.4 MB, free: 8.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.1209, allocations: 111.6 kB / 354.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.1212, allocations: 75.84 kB / 354.6 MB, free: 8.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003659/0.1216, allocations: 255.5 kB / 354.8 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.1218, allocations: 93.81 kB / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.122, allocations: 123.5 kB / 355 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.1222, allocations: 139.4 kB / 355.2 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.1223, allocations: 27.88 kB / 355.2 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.652e-05/0.1223, allocations: 16 kB / 355.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.999e-05/0.1224, allocations: 51.81 kB / 355.2 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.1225, allocations: 89.5 kB / 355.3 MB, free: 7.527 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004136/0.1229, allocations: 339 kB / 355.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1229, allocations: 0 / 355.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.123, allocations: 0 / 355.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.123, allocations: 4 kB / 355.7 MB, free: 7.191 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001631/0.1246, allocations: 0.6496 MB / 356.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.188e-05/0.1247, allocations: 8.031 kB / 356.3 MB, free: 6.477 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.1248, allocations: 54.55 kB / 356.4 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.1249, allocations: 35.62 kB / 356.4 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/0.1254, allocations: 298.4 kB / 356.7 MB, free: 6.047 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.1254, allocations: 20.56 kB / 356.7 MB, free: 6.027 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.1255, allocations: 24 kB / 356.8 MB, free: 6.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008292/0.1263, allocations: 335.6 kB / 357.1 MB, free: 5.668 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1263, allocations: 3.953 kB / 357.1 MB, free: 5.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.1264, allocations: 11.98 kB / 357.1 MB, free: 5.652 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.1264, allocations: 8 kB / 357.1 MB, free: 5.645 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008951/0.1273, allocations: 314 kB / 357.4 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/0.1296, allocations: 1.182 MB / 358.6 MB, free: 4.074 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008502/0.1305, allocations: 282.5 kB / 358.9 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.1305, allocations: 4 kB / 358.9 MB, free: 3.785 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005434/0.1311, allocations: 193.8 kB / 359.1 MB, free: 3.574 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.134e-06/0.1311, allocations: 0 / 359.1 MB, free: 3.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002537/0.1336, allocations: 0.7332 MB / 359.8 MB, free: 2.812 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.1338, allocations: 110.8 kB / 359.9 MB, free: 2.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000451/0.1343, allocations: 278.7 kB / 360.2 MB, free: 2.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.1343, allocations: 29.7 kB / 360.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.1345, allocations: 203.5 kB / 360.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.972e-05/0.1346, allocations: 43.45 kB / 360.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/0.1346, allocations: 224 / 360.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000232/0.1348, allocations: 338.8 kB / 360.8 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.1353, allocations: 124.3 kB / 360.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004355/0.1357, allocations: 216.9 kB / 361.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004062/0.1361, allocations: 163.8 kB / 361.3 MB, free: 1.234 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1361, allocations: 0 / 361.3 MB, free: 1.234 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001298/0.1374, allocations: 0.5034 MB / 361.8 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.743e-05/0.1375, allocations: 37.69 kB / 361.8 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.1375, allocations: 4 kB / 361.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004222/0.1379, allocations: 88.88 kB / 361.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.1382, allocations: 51.89 kB / 361.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/0.1408, allocations: 1.862 MB / 363.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000375/0.1412, allocations: 63.66 kB / 363.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.1413, allocations: 11.98 kB / 363.9 MB, free: 14.46 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 (23): * Single equations (assignments): 21 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002163/0.1415, allocations: 153.8 kB / 364 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.52e-05/0.1415, allocations: 23.91 kB / 364.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.825e-05/0.1416, allocations: 25.83 kB / 364.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1416, allocations: 7.984 kB / 364.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.1416, allocations: 0 / 364.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1416, allocations: 0 / 364.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000324/0.142, allocations: 329.3 kB / 364.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.142, allocations: 0 / 364.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.1421, allocations: 31.97 kB / 364.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002955/0.1424, allocations: 80.8 kB / 364.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.1424, allocations: 12 kB / 364.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.1448, allocations: 1.737 MB / 366.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1448, allocations: 4.062 kB / 366.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.1459, allocations: 404.1 kB / 366.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.785e-05/0.146, allocations: 108.8 kB / 366.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.146, allocations: 4 kB / 366.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.1463, allocations: 47.91 kB / 366.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.064e-05/0.1464, allocations: 23.91 kB / 366.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.1464, allocations: 4 kB / 366.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.1466, allocations: 202 kB / 367.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1466, allocations: 4 kB / 367.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003869/0.147, allocations: 75.84 kB / 367.1 MB, free: 10.98 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: 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 (9): * Single equations (assignments): 6 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00144/0.1485, allocations: 0.9409 MB / 368.1 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.1496, allocations: 464.2 kB / 368.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1496, allocations: 0 / 368.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004843/0.1501, allocations: 255 kB / 368.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.1504, allocations: 44.42 kB / 368.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0042/0.1546, allocations: 3.448 MB / 372.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1549, allocations: 0.7599 MB / 373 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.1551, allocations: 34.25 kB / 373.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.1552, allocations: 83.41 kB / 373.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1552, allocations: 4 kB / 373.1 MB, free: 4.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.1736, allocations: 6.074 MB / 379.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.1738, allocations: 224.9 kB / 379.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.142, allocations: 2.812 kB / 379.4 MB, free: 14.68 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat does not exist to compare? outputFormat=mat