Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.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 3.2.3+maint.om/package.mo", uses=false) 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 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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_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.001231/0.001231, allocations: 98.47 kB / 16.95 MB, free: 6.457 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.001302/0.001302, allocations: 182.6 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.788/1.788, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006448/0.000645, allocations: 16 kB / 280.9 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1206, allocations: 47.57 MB / 328.5 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.003807/0.1244, allocations: 2.302 MB / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1265, allocations: 0.6752 MB / 331.4 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002795/0.1268, allocations: 11.94 kB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.127, allocations: 27.77 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.1273, allocations: 75.38 kB / 331.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.1277, allocations: 67.91 kB / 331.6 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004218/0.1281, allocations: 310.6 kB / 331.9 MB, free: 480 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.1284, allocations: 69.08 kB / 332 MB, free: 416 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.1286, allocations: 107.6 kB / 332.1 MB, free: 308 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.1288, allocations: 139.4 kB / 332.2 MB, free: 168 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.792e-05/0.1289, allocations: 12 kB / 332.2 MB, free: 156 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.521e-05/0.1289, allocations: 16 kB / 332.3 MB, free: 140 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.521e-05/0.129, allocations: 51.75 kB / 332.3 MB, free: 88 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1291, allocations: 73.58 kB / 332.4 MB, free: 8 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003265/0.1294, allocations: 235.7 kB / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.1295, allocations: 0 / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1295, allocations: 0 / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1295, allocations: 0 / 332.6 MB, free: 15.77 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001352/0.1308, allocations: 0.6182 MB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.1309, allocations: 8.031 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.592e-05/0.131, allocations: 54.55 kB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.112e-05/0.1311, allocations: 27.62 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.1315, allocations: 270.3 kB / 333.6 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.1315, allocations: 16.44 kB / 333.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.1315, allocations: 23.94 kB / 333.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.1322, allocations: 263.2 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.1322, allocations: 3.984 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.1322, allocations: 4 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.1323, allocations: 4 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007409/0.133, allocations: 289.6 kB / 334.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.1346, allocations: 0.8855 MB / 335.1 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007271/0.1353, allocations: 270.5 kB / 335.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.1356, allocations: 112.8 kB / 335.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.1356, allocations: 7.938 kB / 335.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000458/0.1361, allocations: 189.9 kB / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.1361, allocations: 0 / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.002027/0.1381, allocations: 0.7059 MB / 336.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.1382, allocations: 114.7 kB / 336.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.1385, allocations: 256.9 kB / 336.7 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.1386, allocations: 33.7 kB / 336.7 MB, free: 11.37 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.1387, allocations: 171.9 kB / 336.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.1388, allocations: 39.45 kB / 336.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.1388, allocations: 7.938 kB / 336.9 MB, free: 11.15 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.139, allocations: 334.8 kB / 337.3 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.1393, allocations: 103.9 kB / 337.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000329/0.1396, allocations: 171.6 kB / 337.5 MB, free: 10.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.14, allocations: 141.6 kB / 337.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.14, allocations: 4 kB / 337.7 MB, free: 10.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001056/0.1411, allocations: 466.9 kB / 338.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.1412, allocations: 159.9 kB / 338.3 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1413, allocations: 4 kB / 338.3 MB, free: 9.711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003406/0.1416, allocations: 72.81 kB / 338.4 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.1418, allocations: 43.91 kB / 338.4 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/0.144, allocations: 1.76 MB / 340.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.1443, allocations: 51.88 kB / 340.2 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.1444, allocations: 8 kB / 340.2 MB, free: 7.637 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.1444, allocations: 4 kB / 340.2 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007162/0.1451, allocations: 314.2 kB / 340.5 MB, free: 7.316 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1451, allocations: 3.984 kB / 340.5 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001047/0.1452, allocations: 40.8 kB / 340.6 MB, free: 7.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.1454, allocations: 51.97 kB / 340.6 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.1467, allocations: 1.542 MB / 342.2 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002707/0.147, allocations: 43.81 kB / 342.2 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1471, allocations: 4 kB / 342.2 MB, free: 5.496 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0002349/0.1473, allocations: 228.9 kB / 342.4 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.315e-05/0.1474, allocations: 19.72 kB / 342.5 MB, free: 5.242 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.823e-05/0.1474, allocations: 29.83 kB / 342.5 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.1474, allocations: 0 / 342.5 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.1474, allocations: 0 / 342.5 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1474, allocations: 0 / 342.5 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003311/0.1478, allocations: 293.4 kB / 342.8 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1478, allocations: 3.953 kB / 342.8 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.1479, allocations: 31.97 kB / 342.8 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002143/0.1482, allocations: 72.8 kB / 342.9 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.1482, allocations: 7.938 kB / 342.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.1499, allocations: 1.644 MB / 344.5 MB, free: 2.988 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.15, allocations: 0 / 344.5 MB, free: 2.988 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008363/0.1508, allocations: 369.5 kB / 344.9 MB, free: 2.605 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.67e-05/0.1509, allocations: 104.8 kB / 345 MB, free: 2.484 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.001e-05/0.151, allocations: 12 kB / 345 MB, free: 2.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.1512, allocations: 35.95 kB / 345 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.026e-05/0.1513, allocations: 23.92 kB / 345.1 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.1513, allocations: 4 kB / 345.1 MB, free: 2.41 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001991/0.1515, allocations: 188.5 kB / 345.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1515, allocations: 0 / 345.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006162/0.1521, allocations: 127.7 kB / 345.4 MB, free: 2.105 MB / 286.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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001236/0.1534, allocations: 0.9024 MB / 346.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.1548, allocations: 0.7228 MB / 347 MB, free: 404 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1549, allocations: 0 / 347 MB, free: 404 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.1553, allocations: 254.9 kB / 347.3 MB, free: 136 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.1557, allocations: 51.66 kB / 347.3 MB, free: 88 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003409/0.1591, allocations: 1.64 MB / 348.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.1595, allocations: 0.7483 MB / 349.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.1597, allocations: 26.28 kB / 349.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.1598, allocations: 67.42 kB / 349.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1598, allocations: 0 / 349.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0254/0.1852, allocations: 6.008 MB / 355.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/0.1856, allocations: 222.8 kB / 356 MB, free: 7.258 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.33, allocations: 0 / 356 MB, free: 7.258 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat does not exist to compare? outputFormat=mat