Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",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.0008817/0.0008818, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.001062/0.001063, allocations: 183 kB / 17.21 MB, free: 6.324 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.531/1.531, allocations: 223.2 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002806/0.0002807, allocations: 8 kB / 300.9 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.115, allocations: 50.42 MB / 351.3 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002881/0.1179, allocations: 2.367 MB / 353.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.119, allocations: 0.6158 MB / 354.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.1192, allocations: 4 kB / 354.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.1194, allocations: 31.75 kB / 354.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001741/0.1195, allocations: 79.39 kB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.1198, allocations: 63.92 kB / 354.5 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.1202, allocations: 342.3 kB / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.1204, allocations: 94.34 kB / 354.9 MB, free: 324 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.1205, allocations: 119.5 kB / 355 MB, free: 204 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.1207, allocations: 139.4 kB / 355.2 MB, free: 64 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.1208, allocations: 20 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.266e-05/0.1208, allocations: 16 kB / 355.2 MB, free: 28 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.1209, allocations: 51.84 kB / 355.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.021e-05/0.121, allocations: 77.58 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.1213, allocations: 279.3 kB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1213, allocations: 0 / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.998e-06/0.1213, allocations: 0 / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.1213, allocations: 7.938 kB / 355.6 MB, free: 15.61 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001191/0.1225, allocations: 0.6185 MB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.1226, allocations: 12.03 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.643e-05/0.1226, allocations: 58.55 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/0.1227, allocations: 35.58 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.123, allocations: 267.4 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.1231, allocations: 16.56 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.1231, allocations: 24 kB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/0.1237, allocations: 315.3 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1238, allocations: 0 / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.1238, allocations: 16 kB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1238, allocations: 7.953 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007224/0.1245, allocations: 269.6 kB / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.1262, allocations: 1.113 MB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007296/0.1269, allocations: 242.6 kB / 358.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002971/0.1272, allocations: 104.7 kB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.1273, allocations: 3.938 kB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004805/0.1278, allocations: 177.9 kB / 358.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.014e-06/0.1278, allocations: 4 kB / 358.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001904/0.1297, allocations: 0.5422 MB / 359.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.1298, allocations: 114.7 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.13, allocations: 286.5 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.1301, allocations: 37.7 kB / 359.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.1302, allocations: 187.6 kB / 360 MB, free: 10.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.1302, allocations: 39.45 kB / 360.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.379e-05/0.1303, allocations: 8 kB / 360.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1304, allocations: 330.8 kB / 360.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.1307, allocations: 108.2 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.1311, allocations: 211 kB / 360.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.1314, allocations: 153 kB / 360.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1315, allocations: 0 / 360.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001128/0.1326, allocations: 443.7 kB / 361.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.1326, allocations: 37.7 kB / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1327, allocations: 8.031 kB / 361.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000333/0.133, allocations: 76.78 kB / 361.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.1332, allocations: 55.91 kB / 361.5 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/0.1354, allocations: 1.593 MB / 363.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003641/0.1358, allocations: 63.64 kB / 363.1 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.1358, allocations: 16.06 kB / 363.1 MB, free: 7.559 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.136, allocations: 149.7 kB / 363.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.472e-05/0.136, allocations: 23.72 kB / 363.3 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.561e-05/0.1361, allocations: 21.7 kB / 363.3 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1361, allocations: 4 kB / 363.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.1361, allocations: 0 / 363.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1361, allocations: 0 / 363.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.1364, allocations: 297.4 kB / 363.6 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1364, allocations: 4 kB / 363.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.1365, allocations: 23.98 kB / 363.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002473/0.1368, allocations: 72.8 kB / 363.7 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1368, allocations: 192 / 363.7 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/0.1388, allocations: 1.585 MB / 365.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1388, allocations: 0 / 365.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009552/0.1398, allocations: 333.5 kB / 365.6 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1399, allocations: 112.8 kB / 365.7 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.1399, allocations: 8 kB / 365.7 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.1402, allocations: 31.97 kB / 365.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.722e-05/0.1403, allocations: 35.84 kB / 365.8 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.1403, allocations: 4 kB / 365.8 MB, free: 4.641 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002062/0.1405, allocations: 198 kB / 366 MB, free: 4.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1405, allocations: 0 / 366 MB, free: 4.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004116/0.1409, allocations: 79.84 kB / 366.1 MB, free: 4.371 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 (7): * Single equations (assignments): 4 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001366/0.1423, allocations: 0.8783 MB / 367 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.1433, allocations: 421.9 kB / 367.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.1434, allocations: 4 kB / 367.4 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004861/0.1439, allocations: 247.1 kB / 367.6 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.1442, allocations: 36.88 kB / 367.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.1475, allocations: 1.689 MB / 369.3 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.1478, allocations: 0.7521 MB / 370.1 MB, free: 168 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.1479, allocations: 26.28 kB / 370.1 MB, free: 144 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.148, allocations: 79.41 kB / 370.2 MB, free: 64 kB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.148, allocations: 0 / 370.2 MB, free: 64 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2332/0.3813, allocations: 5.995 MB / 376.2 MB, free: 23.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001964/0.3815, allocations: 219.7 kB / 376.4 MB, free: 23.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.353, allocations: 1.859 kB / 376.4 MB, free: 23.45 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat