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.001323/0.001323, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001309/0.001309, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.442/1.442, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 49.92 kB / 300.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1182, allocations: 49.44 MB / 349.5 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004345/0.1225, allocations: 2.826 MB / 352.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.1239, allocations: 0.6506 MB / 353 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.124, allocations: 4 kB / 353 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.1243, allocations: 35.77 kB / 353 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1245, allocations: 75.38 kB / 353.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.1248, allocations: 71.94 kB / 353.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.1252, allocations: 358.4 kB / 353.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.1254, allocations: 107.5 kB / 353.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.1256, allocations: 139.5 kB / 353.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1258, allocations: 151.4 kB / 353.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.167e-05/0.1259, allocations: 20 kB / 353.9 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.144e-05/0.126, allocations: 24 kB / 354 MB, free: 196 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.126, allocations: 63.69 kB / 354 MB, free: 132 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.1262, allocations: 151.3 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003833/0.1266, allocations: 358.8 kB / 354.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.1266, allocations: 3.984 kB / 354.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1266, allocations: 0 / 354.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1267, allocations: 4 kB / 354.5 MB, free: 15.62 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.001387/0.1281, allocations: 0.6536 MB / 355.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1281, allocations: 16.03 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.757e-05/0.1282, allocations: 62.66 kB / 355.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.979e-05/0.1283, allocations: 36.56 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.1287, allocations: 272.6 kB / 355.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.1287, allocations: 16.94 kB / 355.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.1287, allocations: 24.38 kB / 355.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006999/0.1294, allocations: 307.5 kB / 355.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1295, allocations: 0 / 355.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.1295, allocations: 8 kB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.1295, allocations: 8 kB / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008103/0.1303, allocations: 257.5 kB / 356.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.1322, allocations: 1.085 MB / 357.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008201/0.133, allocations: 210.5 kB / 357.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.1333, allocations: 88.8 kB / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.1334, allocations: 3.984 kB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005222/0.1339, allocations: 169.8 kB / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/0.1339, allocations: 4 kB / 357.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002136/0.136, allocations: 0.5066 MB / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1362, allocations: 114.8 kB / 358.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003543/0.1365, allocations: 282.6 kB / 358.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.1366, allocations: 29.7 kB / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.1367, allocations: 195.5 kB / 358.8 MB, free: 11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.1368, allocations: 51.38 kB / 358.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1369, allocations: 57.84 kB / 358.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.137, allocations: 330.8 kB / 359.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.1374, allocations: 92.14 kB / 359.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.1378, allocations: 202.1 kB / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007017/0.1385, allocations: 301.4 kB / 359.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.1385, allocations: 4 kB / 359.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001184/0.1397, allocations: 423.2 kB / 360.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.976e-05/0.1398, allocations: 37.69 kB / 360.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1398, allocations: 3.938 kB / 360.3 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003706/0.1401, allocations: 72.91 kB / 360.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.1404, allocations: 51.89 kB / 360.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1047/0.2451, allocations: 1.593 MB / 362 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006019/0.2457, allocations: 51.66 kB / 362.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.2458, allocations: 15.98 kB / 362.1 MB, free: 7.48 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002031/0.246, allocations: 149.7 kB / 362.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.484e-05/0.246, allocations: 27.72 kB / 362.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.093e-05/0.2461, allocations: 25.7 kB / 362.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2461, allocations: 0 / 362.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2461, allocations: 4 kB / 362.3 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2461, allocations: 0 / 362.3 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/0.2465, allocations: 301.3 kB / 362.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2465, allocations: 0 / 362.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.2466, allocations: 19.92 kB / 362.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003093/0.247, allocations: 72.8 kB / 362.7 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.247, allocations: 0 / 362.7 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002183/0.2492, allocations: 1.585 MB / 364.3 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2492, allocations: 4.031 kB / 364.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009909/0.2502, allocations: 313.4 kB / 364.6 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.2503, allocations: 112.8 kB / 364.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.284e-05/0.2503, allocations: 11.98 kB / 364.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.2506, allocations: 23.97 kB / 364.7 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.161e-05/0.2507, allocations: 19.97 kB / 364.7 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.2507, allocations: 8 kB / 364.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.2509, allocations: 198 kB / 364.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2509, allocations: 4 kB / 364.9 MB, free: 4.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003695/0.2513, allocations: 75.84 kB / 365 MB, free: 4.32 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001356/0.2527, allocations: 0.847 MB / 365.9 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009807/0.2537, allocations: 409.7 kB / 366.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2537, allocations: 0.8125 kB / 366.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004532/0.2541, allocations: 227.2 kB / 366.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.2545, allocations: 46.5 kB / 366.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1456/0.4001, allocations: 3.091 MB / 369.6 MB, free: 24.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.4004, allocations: 0.7515 MB / 370.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001628/0.4005, allocations: 25.19 kB / 370.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.4006, allocations: 78.05 kB / 370.5 MB, free: 24.01 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4007, allocations: 2 kB / 370.5 MB, free: 24.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2846/0.6853, allocations: 6.2 MB / 376.7 MB, free: 23.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.6855, allocations: 240.3 kB / 376.9 MB, free: 23.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/2.734, allocations: 1.344 kB / 376.9 MB, free: 23.31 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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,vIn.signalSource.y Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,k,opAmp.VMax.i,opAmp.VMax.v,opAmp.VMin.i,opAmp.VMin.v,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.vin,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v,vSourceNeg.V,vSourceNeg.i,vSourceNeg.n.i,vSourceNeg.n.v,vSourceNeg.p.i,vSourceNeg.p.v,vSourceNeg.v,vSourcePos.V,vSourcePos.i,vSourcePos.n.i,vSourcePos.n.v,vSourcePos.p.i,vSourcePos.p.v,vSourcePos.v