Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002132/0.002139, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.411/2.411, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 98.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.00038, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.09821, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003915/0.1022, allocations: 2.217 MB / 376.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.104, allocations: 0.6792 MB / 377.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.1043, allocations: 4 kB / 377.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.811e-05/0.1044, allocations: 31.75 kB / 377.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003451/0.1048, allocations: 99.7 kB / 377.7 MB, free: 12.28 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.1051, allocations: 63.88 kB / 377.7 MB, free: 12.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005153/0.1056, allocations: 243.5 kB / 378 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002732/0.1059, allocations: 94.27 kB / 378.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002521/0.1062, allocations: 123.5 kB / 378.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.1065, allocations: 139.4 kB / 378.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.223e-05/0.1066, allocations: 20 kB / 378.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.302e-05/0.1066, allocations: 16 kB / 378.4 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/0.1067, allocations: 51.83 kB / 378.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1069, allocations: 85.45 kB / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004796/0.1073, allocations: 275.5 kB / 378.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1074, allocations: 0 / 378.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1074, allocations: 0 / 378.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.1074, allocations: 0 / 378.8 MB, free: 11.19 MB / 282.7 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.001906/0.1093, allocations: 0.6185 MB / 379.4 MB, free: 10.51 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.1094, allocations: 11.97 kB / 379.4 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.1095, allocations: 62.55 kB / 379.4 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.1097, allocations: 35.62 kB / 379.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.1101, allocations: 259.5 kB / 379.7 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.926e-05/0.1102, allocations: 24.5 kB / 379.8 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.206e-05/0.1103, allocations: 24 kB / 379.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.1115, allocations: 311.3 kB / 380.1 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.1115, allocations: 0 / 380.1 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.153e-05/0.1116, allocations: 12 kB / 380.1 MB, free: 9.719 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.1116, allocations: 8 kB / 380.1 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.1131, allocations: 269.6 kB / 380.4 MB, free: 9.449 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.116, allocations: 1.109 MB / 381.5 MB, free: 8.246 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.1176, allocations: 250.6 kB / 381.7 MB, free: 7.992 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.1177, allocations: 3.984 kB / 381.7 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000793/0.1185, allocations: 182 kB / 381.9 MB, free: 7.789 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 8.165e-06/0.1186, allocations: 3.938 kB / 381.9 MB, free: 7.785 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.003764/0.1223, allocations: 0.5418 MB / 382.5 MB, free: 7.215 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.1225, allocations: 110.8 kB / 382.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005063/0.123, allocations: 282.5 kB / 382.8 MB, free: 6.797 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.1231, allocations: 33.7 kB / 382.9 MB, free: 6.758 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002418/0.1233, allocations: 246.1 kB / 383.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.817e-05/0.1234, allocations: 39.45 kB / 383.1 MB, free: 6.477 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.1234, allocations: 4 kB / 383.2 MB, free: 6.473 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1236, allocations: 322.8 kB / 383.5 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00062/0.1242, allocations: 104.2 kB / 383.6 MB, free: 6.047 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000733/0.125, allocations: 210.1 kB / 383.8 MB, free: 5.793 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000669/0.1257, allocations: 154.2 kB / 383.9 MB, free: 5.637 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1257, allocations: 0 / 383.9 MB, free: 5.637 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.002209/0.1279, allocations: 439.6 kB / 384.4 MB, free: 5.195 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.009e-05/0.128, allocations: 37.64 kB / 384.4 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1281, allocations: 0 / 384.4 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005602/0.1286, allocations: 80.89 kB / 384.5 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004005/0.129, allocations: 47.91 kB / 384.5 MB, free: 5.023 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00387/0.1329, allocations: 1.628 MB / 386.1 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.1336, allocations: 59.64 kB / 386.2 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.1337, allocations: 12 kB / 386.2 MB, free: 3.191 MB / 282.7 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.0002411/0.1339, allocations: 145.8 kB / 386.4 MB, free: 3.039 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.134, allocations: 19.72 kB / 386.4 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.299e-05/0.1341, allocations: 29.7 kB / 386.4 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1341, allocations: 0 / 386.4 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1341, allocations: 4 kB / 386.4 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1341, allocations: 3.953 kB / 386.4 MB, free: 2.984 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004351/0.1346, allocations: 301.4 kB / 386.7 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1346, allocations: 0 / 386.7 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.1348, allocations: 27.97 kB / 386.7 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004953/0.1354, allocations: 60.81 kB / 386.8 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.1354, allocations: 8 kB / 386.8 MB, free: 2.543 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003608/0.139, allocations: 1.605 MB / 388.4 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.1391, allocations: 0 / 388.4 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.141, allocations: 337.4 kB / 388.7 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.1412, allocations: 112.8 kB / 388.8 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.1413, allocations: 4 kB / 388.8 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004641/0.1418, allocations: 31.97 kB / 388.9 MB, free: 296 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.142, allocations: 35.89 kB / 388.9 MB, free: 260 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.142, allocations: 4 kB / 388.9 MB, free: 256 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003149/0.1423, allocations: 198 kB / 389.1 MB, free: 60 kB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1423, allocations: 0 / 389.1 MB, free: 60 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.26/0.4023, allocations: 75.75 kB / 389.2 MB, free: 20.57 MB / 282.7 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.002495/0.4049, allocations: 0.8715 MB / 390.1 MB, free: 19.97 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.4069, allocations: 428.7 kB / 390.5 MB, free: 19.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.4069, allocations: 1.5 kB / 390.5 MB, free: 19.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009411/0.4079, allocations: 237.4 kB / 390.7 MB, free: 19.69 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.4083, allocations: 41.78 kB / 390.8 MB, free: 19.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006809/0.4152, allocations: 3.675 MB / 394.4 MB, free: 17.06 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.4156, allocations: 0.7594 MB / 395.2 MB, free: 16.36 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.4158, allocations: 74.86 kB / 395.3 MB, free: 16.36 MB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4158, allocations: 2.906 kB / 395.3 MB, free: 16.36 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.654/3.07, allocations: 5.442 MB / 400.7 MB, free: 15.68 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat