Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",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.001045/0.001045, 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.001188/0.001188, allocations: 183.1 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.52/1.52, allocations: 223.2 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002597, allocations: 12.5 kB / 300.9 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.09979, allocations: 50.41 MB / 351.4 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.003152/0.103, allocations: 2.496 MB / 353.9 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.1043, allocations: 0.6938 MB / 354.5 MB, free: 460 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.1045, allocations: 8 kB / 354.6 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.1046, allocations: 39.69 kB / 354.6 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.1048, allocations: 75.38 kB / 354.7 MB, free: 336 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.1051, allocations: 75.84 kB / 354.7 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.1055, allocations: 366.5 kB / 355.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/0.1058, allocations: 98.64 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.106, allocations: 131.5 kB / 355.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.1062, allocations: 143.4 kB / 355.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.1062, allocations: 16 kB / 355.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.234e-05/0.1063, allocations: 16 kB / 355.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.1063, allocations: 55.7 kB / 355.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.369e-05/0.1064, allocations: 77.58 kB / 355.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.1068, allocations: 351.2 kB / 356 MB, free: 15.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.1068, allocations: 8 kB / 356 MB, free: 15.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1068, allocations: 0 / 356 MB, free: 15.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.1069, allocations: 0 / 356 MB, free: 15.01 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001228/0.1081, allocations: 0.638 MB / 356.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1081, allocations: 8.031 kB / 356.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.807e-05/0.1082, allocations: 58.55 kB / 356.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.47e-05/0.1083, allocations: 31.62 kB / 356.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.1086, allocations: 290.4 kB / 357 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.1087, allocations: 20.56 kB / 357 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.1087, allocations: 28 kB / 357 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007092/0.1094, allocations: 339.6 kB / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1095, allocations: 7.875 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.1095, allocations: 11.98 kB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1095, allocations: 8 kB / 357.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007712/0.1103, allocations: 310.1 kB / 357.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.1121, allocations: 1.178 MB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000772/0.1128, allocations: 282.5 kB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003018/0.1132, allocations: 120.8 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.1132, allocations: 3.984 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004646/0.1137, allocations: 197.9 kB / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.813e-06/0.1137, allocations: 3.938 kB / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002169/0.1158, allocations: 0.7442 MB / 360.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.1159, allocations: 106.8 kB / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.1162, allocations: 286.6 kB / 360.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1163, allocations: 25.7 kB / 360.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/0.1164, allocations: 207.5 kB / 360.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.1165, allocations: 35.45 kB / 360.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/0.1165, allocations: 8 kB / 360.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1167, allocations: 338.8 kB / 361.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.117, allocations: 116.2 kB / 361.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.1174, allocations: 232.6 kB / 361.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.1178, allocations: 161.6 kB / 361.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1178, allocations: 0 / 361.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001133/0.119, allocations: 0.5063 MB / 362.2 MB, free: 8.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.119, allocations: 37.69 kB / 362.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.119, allocations: 4.219 kB / 362.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003551/0.1194, allocations: 92.86 kB / 362.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/0.1196, allocations: 59.83 kB / 362.4 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/0.1223, allocations: 1.912 MB / 364.3 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.1226, allocations: 67.77 kB / 364.4 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.1227, allocations: 11.98 kB / 364.4 MB, free: 6.074 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (24): * Single equations (assignments): 22 * 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.0001759/0.1228, allocations: 145.8 kB / 364.5 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.1229, allocations: 23.72 kB / 364.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.023e-05/0.1229, allocations: 33.83 kB / 364.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1229, allocations: 0 / 364.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.123, allocations: 0 / 364.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.123, allocations: 4 kB / 364.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.1233, allocations: 325.3 kB / 364.9 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1233, allocations: 0 / 364.9 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.1235, allocations: 23.98 kB / 364.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002704/0.1237, allocations: 92.83 kB / 365 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1238, allocations: 0 / 365 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/0.1261, allocations: 1.826 MB / 366.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1261, allocations: 0 / 366.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.1271, allocations: 413.5 kB / 367.3 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.921e-05/0.1272, allocations: 100.8 kB / 367.4 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.1273, allocations: 4 kB / 367.4 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.1275, allocations: 43.97 kB / 367.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-05/0.1276, allocations: 23.91 kB / 367.4 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.1276, allocations: 7.984 kB / 367.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002148/0.1278, allocations: 194 kB / 367.6 MB, free: 2.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1279, allocations: 0 / 367.6 MB, free: 2.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004428/0.1283, allocations: 91.7 kB / 367.7 MB, free: 2.52 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.001373/0.1297, allocations: 0.9409 MB / 368.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.131, allocations: 0.5218 MB / 369.2 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/0.131, allocations: 4 kB / 369.2 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005051/0.1315, allocations: 261.9 kB / 369.4 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.132, allocations: 48.53 kB / 369.5 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2119/0.3439, allocations: 2.315 MB / 371.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.3441, allocations: 0.7552 MB / 372.5 MB, free: 23.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001573/0.3443, allocations: 26.27 kB / 372.6 MB, free: 23.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.3445, allocations: 83.14 kB / 372.7 MB, free: 23.24 MB / 302.1 MB Notification: Performance of SimCode: time 1.843e-06/0.3445, allocations: 1.969 kB / 372.7 MB, free: 23.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.3652, allocations: 6.088 MB / 378.7 MB, free: 22.8 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002358/0.3655, allocations: 244.4 kB / 379 MB, free: 22.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/2.343, allocations: 4 kB / 379 MB, free: 22.56 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat does not exist to compare? outputFormat=mat