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.001006/0.001006, allocations: 91.84 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.0009996/0.0009999, allocations: 187.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.606/1.606, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002827, allocations: 7.594 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1447, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.00452/0.1493, allocations: 2.393 MB / 353.6 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.1512, allocations: 0.7057 MB / 354.3 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.1514, allocations: 4 kB / 354.3 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.231e-05/0.1515, allocations: 31.75 kB / 354.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003347/0.1519, allocations: 115.6 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.1522, allocations: 75.84 kB / 354.6 MB, free: 8.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/0.1527, allocations: 259.5 kB / 354.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.1529, allocations: 93.8 kB / 354.9 MB, free: 7.977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.1532, allocations: 127.5 kB / 355 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.1534, allocations: 143.4 kB / 355.2 MB, free: 7.711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.993e-05/0.1535, allocations: 20 kB / 355.2 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.814e-05/0.1536, allocations: 19.94 kB / 355.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.34e-05/0.1537, allocations: 55.8 kB / 355.3 MB, free: 7.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.1538, allocations: 85.52 kB / 355.3 MB, free: 7.527 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.1542, allocations: 343 kB / 355.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1543, allocations: 0 / 355.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1543, allocations: 0 / 355.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.1543, allocations: 0 / 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.001635/0.1559, allocations: 0.6457 MB / 356.3 MB, free: 6.488 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.156, allocations: 8.031 kB / 356.3 MB, free: 6.48 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.924e-05/0.1561, allocations: 62.53 kB / 356.4 MB, free: 6.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.401e-05/0.1562, allocations: 35.62 kB / 356.4 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.1567, allocations: 286.4 kB / 356.7 MB, free: 6.055 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.1567, allocations: 20.5 kB / 356.7 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.1568, allocations: 24 kB / 356.7 MB, free: 6.012 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.1579, allocations: 339.6 kB / 357.1 MB, free: 5.672 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.1579, allocations: 7.953 kB / 357.1 MB, free: 5.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.732e-05/0.158, allocations: 8 kB / 357.1 MB, free: 5.656 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.158, allocations: 8 kB / 357.1 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.1592, allocations: 314 kB / 357.4 MB, free: 5.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002611/0.1619, allocations: 1.178 MB / 358.6 MB, free: 4.082 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.1631, allocations: 286.5 kB / 358.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.1631, allocations: 0 / 358.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007019/0.1638, allocations: 197.8 kB / 359.1 MB, free: 3.578 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.1639, allocations: 0 / 359.1 MB, free: 3.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.003534/0.1674, allocations: 0.7403 MB / 359.8 MB, free: 2.812 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1675, allocations: 110.8 kB / 359.9 MB, free: 2.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005059/0.168, allocations: 278.7 kB / 360.2 MB, free: 2.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.1681, allocations: 33.7 kB / 360.2 MB, free: 2.359 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.1683, allocations: 199.5 kB / 360.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.1684, allocations: 43.45 kB / 360.5 MB, free: 2.117 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/0.1684, allocations: 4.219 kB / 360.5 MB, free: 2.113 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002375/0.1687, allocations: 338.8 kB / 360.8 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005742/0.1693, allocations: 120.1 kB / 360.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006248/0.1699, allocations: 229.2 kB / 361.1 MB, free: 1.383 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003882/0.1703, allocations: 167.9 kB / 361.3 MB, free: 1.215 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1703, allocations: 4 kB / 361.3 MB, free: 1.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001294/0.1716, allocations: 0.4997 MB / 361.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.167e-05/0.1717, allocations: 37.69 kB / 361.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.1717, allocations: 4 kB / 361.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004346/0.1721, allocations: 96.8 kB / 361.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.1724, allocations: 55.91 kB / 362 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/0.1757, allocations: 1.928 MB / 363.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.1761, allocations: 67.7 kB / 364 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.1761, allocations: 12 kB / 364 MB, free: 14.36 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.0002122/0.1763, allocations: 156.1 kB / 364.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.1764, allocations: 27.91 kB / 364.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.741e-05/0.1764, allocations: 29.81 kB / 364.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1765, allocations: 4 kB / 364.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.1765, allocations: 0 / 364.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1765, allocations: 7.922 kB / 364.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003483/0.1768, allocations: 329.3 kB / 364.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1768, allocations: 0 / 364.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.177, allocations: 27.97 kB / 364.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003072/0.1773, allocations: 84.8 kB / 364.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.1773, allocations: 8 kB / 364.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/0.1801, allocations: 1.838 MB / 366.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1801, allocations: 4.062 kB / 366.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.1812, allocations: 409.4 kB / 366.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.245e-05/0.1813, allocations: 104.7 kB / 367 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.1814, allocations: 15.98 kB / 367 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.1816, allocations: 31.97 kB / 367 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.1817, allocations: 19.97 kB / 367.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1817, allocations: 8 kB / 367.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002793/0.182, allocations: 202 kB / 367.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.182, allocations: 0 / 367.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004556/0.1825, allocations: 79.84 kB / 367.3 MB, free: 10.77 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.001418/0.1839, allocations: 0.9408 MB / 368.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.1854, allocations: 0.5329 MB / 368.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.1854, allocations: 0 / 368.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005702/0.1859, allocations: 251.2 kB / 369.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.1863, allocations: 48.64 kB / 369.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007601/0.1939, allocations: 4.129 MB / 373.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.1943, allocations: 0.7677 MB / 374 MB, free: 3.898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.1945, allocations: 26.3 kB / 374 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.1946, allocations: 83.41 kB / 374.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of SimCode: time 1.393e-06/0.1946, allocations: 0 / 374.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.216, allocations: 6.068 MB / 380.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.2163, allocations: 224.4 kB / 380.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.991/2.207, allocations: 3.75 kB / 380.4 MB, free: 13.74 MB / 318.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