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.001727/0.001727, allocations: 115 kB / 16.63 MB, free: 6.812 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.001901/0.001901, allocations: 186 kB / 17.55 MB, free: 5.934 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.411/1.411, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 49.92 kB / 300.2 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1113, allocations: 49.45 MB / 349.7 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004314/0.1156, allocations: 2.822 MB / 352.5 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.117, allocations: 0.6389 MB / 353.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.1172, allocations: 4 kB / 353.2 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.1174, allocations: 35.7 kB / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002502/0.1177, allocations: 79.31 kB / 353.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.118, allocations: 71.92 kB / 353.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004518/0.1185, allocations: 382.4 kB / 353.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.1187, allocations: 122.9 kB / 353.8 MB, free: 448 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.1189, allocations: 143.4 kB / 354 MB, free: 304 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.1192, allocations: 171.3 kB / 354.1 MB, free: 132 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.288e-05/0.1192, allocations: 36 kB / 354.2 MB, free: 96 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.172e-05/0.1193, allocations: 36 kB / 354.2 MB, free: 60 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.096e-05/0.1194, allocations: 71.83 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.1196, allocations: 163.2 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.1199, allocations: 366.9 kB / 354.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1199, allocations: 3.984 kB / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1199, allocations: 0 / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.12, allocations: 0 / 354.8 MB, free: 15.46 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.001345/0.1213, allocations: 0.6565 MB / 355.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1214, allocations: 11.97 kB / 355.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.107e-05/0.1214, allocations: 62.72 kB / 355.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.673e-05/0.1215, allocations: 36.56 kB / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.1218, allocations: 268.7 kB / 355.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.1219, allocations: 20.94 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.001e-05/0.1219, allocations: 24.38 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006647/0.1226, allocations: 299.3 kB / 356.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1226, allocations: 7.938 kB / 356.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.1226, allocations: 8 kB / 356.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1227, allocations: 12 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007688/0.1234, allocations: 249.5 kB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.1251, allocations: 1.093 MB / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007403/0.1259, allocations: 214.5 kB / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002928/0.1262, allocations: 92.83 kB / 357.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1262, allocations: 7.969 kB / 357.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004931/0.1267, allocations: 165.8 kB / 358 MB, free: 12.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.1267, allocations: 0 / 358 MB, free: 12.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002033/0.1288, allocations: 0.5144 MB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/0.1289, allocations: 106.8 kB / 358.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.1292, allocations: 282.6 kB / 358.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.1292, allocations: 33.7 kB / 358.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1293, allocations: 191.6 kB / 359.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.894e-05/0.1294, allocations: 47.39 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.587e-05/0.1295, allocations: 49.84 kB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1296, allocations: 338.8 kB / 359.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.1299, allocations: 104 kB / 359.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.1303, allocations: 198.1 kB / 359.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006721/0.131, allocations: 297.5 kB / 360.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.131, allocations: 0 / 360.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00117/0.1322, allocations: 427.2 kB / 360.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.044e-05/0.1322, allocations: 45.62 kB / 360.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1323, allocations: 4 kB / 360.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.1326, allocations: 72.84 kB / 360.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002255/0.1328, allocations: 47.95 kB / 360.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.1351, allocations: 1.711 MB / 362.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.1355, allocations: 55.64 kB / 362.5 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.1355, allocations: 12 kB / 362.5 MB, free: 7.188 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.0001544/0.1357, allocations: 153.7 kB / 362.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.1358, allocations: 23.72 kB / 362.7 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.1358, allocations: 29.7 kB / 362.7 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1358, allocations: 3.938 kB / 362.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1358, allocations: 192 / 362.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1358, allocations: 8 kB / 362.7 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.1361, allocations: 301.3 kB / 363 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1361, allocations: 0 / 363 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.1363, allocations: 19.97 kB / 363 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002595/0.1365, allocations: 64.81 kB / 363.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1366, allocations: 4 kB / 363.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002087/0.1387, allocations: 1.699 MB / 364.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1387, allocations: 0 / 364.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009931/0.1397, allocations: 309.4 kB / 365.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.1398, allocations: 116.8 kB / 365.2 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.548e-05/0.1399, allocations: 8.188 kB / 365.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.1401, allocations: 31.97 kB / 365.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.389e-05/0.1402, allocations: 27.91 kB / 365.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.1402, allocations: 7.984 kB / 365.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.1404, allocations: 194 kB / 365.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1404, allocations: 0 / 365.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003887/0.1408, allocations: 83.83 kB / 365.5 MB, free: 3.895 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.001302/0.1421, allocations: 0.8509 MB / 366.4 MB, free: 3.012 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009846/0.1431, allocations: 410.5 kB / 366.8 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1432, allocations: 0 / 366.8 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004587/0.1436, allocations: 227.2 kB / 367 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.144, allocations: 45 kB / 367.1 MB, free: 2.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1631/0.3071, allocations: 3.098 MB / 370.2 MB, free: 24.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.3073, allocations: 0.7509 MB / 370.9 MB, free: 24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.3075, allocations: 27.05 kB / 370.9 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.3076, allocations: 78.27 kB / 371 MB, free: 23.99 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3076, allocations: 0 / 371 MB, free: 23.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0257/0.3333, allocations: 6.459 MB / 377.5 MB, free: 23.37 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.3335, allocations: 243.3 kB / 377.7 MB, free: 23.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.408, allocations: 3.938 kB / 377.7 MB, free: 23.1 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