Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_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.001426/0.001426, allocations: 103.4 kB / 17.16 MB, free: 6.316 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.001775/0.001775, allocations: 190 kB / 18.07 MB, free: 5.414 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.657/1.657, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001269/0.00127, allocations: 47.94 kB / 280.1 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09705, allocations: 46.62 MB / 326.7 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.0052/0.1023, allocations: 2.791 MB / 329.5 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1037, allocations: 0.6826 MB / 330.2 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.104, allocations: 8 kB / 330.2 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002143/0.1043, allocations: 35.69 kB / 330.2 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002706/0.1046, allocations: 75.39 kB / 330.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.1049, allocations: 79.91 kB / 330.4 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003532/0.1052, allocations: 350.6 kB / 330.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.1054, allocations: 99.61 kB / 330.8 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.1056, allocations: 139.4 kB / 330.9 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.1058, allocations: 151.4 kB / 331.1 MB, free: 360 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.699e-05/0.1059, allocations: 31.98 kB / 331.1 MB, free: 328 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.543e-05/0.1059, allocations: 24 kB / 331.1 MB, free: 304 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.241e-05/0.106, allocations: 63.7 kB / 331.2 MB, free: 240 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.1061, allocations: 155.2 kB / 331.4 MB, free: 84 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000337/0.1065, allocations: 359.1 kB / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1065, allocations: 0 / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1065, allocations: 0 / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.1065, allocations: 0 / 331.7 MB, free: 15.73 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001285/0.1078, allocations: 0.6496 MB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1079, allocations: 8.031 kB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.296e-05/0.1079, allocations: 58.73 kB / 332.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.157e-05/0.108, allocations: 44.48 kB / 332.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.1084, allocations: 272.7 kB / 332.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.1084, allocations: 24.94 kB / 332.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.1084, allocations: 28.31 kB / 332.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006386/0.1091, allocations: 295.5 kB / 333.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1091, allocations: 0 / 333.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.991e-05/0.1091, allocations: 12 kB / 333.1 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1092, allocations: 12 kB / 333.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00074/0.1099, allocations: 249.5 kB / 333.3 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1116, allocations: 1.101 MB / 334.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007644/0.1124, allocations: 206.5 kB / 334.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002766/0.1127, allocations: 92.8 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.1127, allocations: 4 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004814/0.1132, allocations: 169.8 kB / 334.9 MB, free: 12.29 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.1132, allocations: 0 / 334.9 MB, free: 12.29 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.00186/0.1151, allocations: 0.5106 MB / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.1151, allocations: 106.8 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.1155, allocations: 290.5 kB / 335.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.1155, allocations: 29.7 kB / 335.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.1156, allocations: 191.6 kB / 336 MB, free: 11.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.1157, allocations: 39.39 kB / 336.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.981e-05/0.1158, allocations: 57.84 kB / 336.1 MB, free: 11.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.1159, allocations: 330.8 kB / 336.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003023/0.1162, allocations: 100.2 kB / 336.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.1166, allocations: 198.1 kB / 336.7 MB, free: 10.34 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.1172, allocations: 309.3 kB / 337 MB, free: 9.984 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.1172, allocations: 0 / 337 MB, free: 9.984 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001112/0.1183, allocations: 423.7 kB / 337.4 MB, free: 9.555 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.1184, allocations: 33.7 kB / 337.5 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1184, allocations: 11.92 kB / 337.5 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003025/0.1187, allocations: 68.91 kB / 337.6 MB, free: 9.434 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.1189, allocations: 51.89 kB / 337.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009465/0.1284, allocations: 1.582 MB / 339.2 MB, free: 7.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004554/0.1289, allocations: 59.7 kB / 339.2 MB, free: 7.609 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.1289, allocations: 15.94 kB / 339.3 MB, free: 7.594 MB / 286.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.0001725/0.1291, allocations: 153.6 kB / 339.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.126e-05/0.1291, allocations: 27.7 kB / 339.4 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.031e-05/0.1292, allocations: 21.72 kB / 339.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1292, allocations: 0 / 339.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.1292, allocations: 3.984 kB / 339.5 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1292, allocations: 4 kB / 339.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002944/0.1295, allocations: 305.3 kB / 339.8 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1295, allocations: 4 kB / 339.8 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.1297, allocations: 15.97 kB / 339.8 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002589/0.1299, allocations: 76.73 kB / 339.9 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.13, allocations: 4 kB / 339.9 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.1319, allocations: 1.57 MB / 341.4 MB, free: 5.223 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1319, allocations: 3.938 kB / 341.4 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009252/0.1328, allocations: 309.4 kB / 341.7 MB, free: 4.895 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.973e-05/0.1329, allocations: 120.7 kB / 341.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.61e-05/0.133, allocations: 0 / 341.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.1332, allocations: 35.95 kB / 341.9 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.906e-05/0.1333, allocations: 23.97 kB / 341.9 MB, free: 4.699 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.1333, allocations: 0 / 341.9 MB, free: 4.699 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.1335, allocations: 202 kB / 342.1 MB, free: 4.5 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1335, allocations: 0 / 342.1 MB, free: 4.5 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003364/0.1338, allocations: 79.84 kB / 342.2 MB, free: 4.422 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 (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.001217/0.1351, allocations: 0.851 MB / 343 MB, free: 3.535 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008809/0.136, allocations: 414.7 kB / 343.4 MB, free: 3.105 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.136, allocations: 0 / 343.4 MB, free: 3.105 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004232/0.1364, allocations: 219.2 kB / 343.7 MB, free: 2.879 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.1367, allocations: 52.72 kB / 343.7 MB, free: 2.828 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.1414, allocations: 3.104 MB / 346.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.1417, allocations: 0.7558 MB / 347.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1418, allocations: 30.22 kB / 347.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.1419, allocations: 75.42 kB / 347.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1419, allocations: 4 kB / 347.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3069/0.4488, allocations: 6.199 MB / 353.9 MB, free: 8.441 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/0.4491, allocations: 239.6 kB / 354.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.697/3.146, allocations: 0 / 354.1 MB, free: 8.176 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_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