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.000992/0.000992, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.001037/0.001037, allocations: 187.9 kB / 18.5 MB, free: 4.508 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.411/1.411, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001142/0.001142, allocations: 52.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1028, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004247/0.1071, allocations: 2.758 MB / 330.1 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.1085, allocations: 0.6748 MB / 330.8 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.1088, allocations: 7.938 kB / 330.8 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002083/0.1091, allocations: 47.56 kB / 330.9 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.1094, allocations: 91.19 kB / 331 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.1097, allocations: 91.81 kB / 331 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005174/0.1102, allocations: 374.5 kB / 331.4 MB, free: 312 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1105, allocations: 119 kB / 331.5 MB, free: 196 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002074/0.1107, allocations: 143.5 kB / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.1109, allocations: 167.4 kB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.504e-05/0.111, allocations: 36 kB / 331.9 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.703e-05/0.1111, allocations: 32 kB / 331.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.083e-05/0.1111, allocations: 71.8 kB / 332 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.1113, allocations: 163.2 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003531/0.1117, allocations: 370.8 kB / 332.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1117, allocations: 0 / 332.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1117, allocations: 4 kB / 332.5 MB, free: 15.22 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1117, allocations: 0 / 332.5 MB, free: 15.22 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.001203/0.1129, allocations: 0.6536 MB / 333.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.113, allocations: 12.03 kB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.792e-05/0.113, allocations: 66.7 kB / 333.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.13e-05/0.1131, allocations: 32.56 kB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.1134, allocations: 268.7 kB / 333.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.1134, allocations: 16.94 kB / 333.5 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.1134, allocations: 24.38 kB / 333.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006194/0.1141, allocations: 307.5 kB / 333.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1141, allocations: 0 / 333.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.1141, allocations: 12 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1141, allocations: 7.938 kB / 333.9 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008239/0.115, allocations: 253.5 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.1166, allocations: 1.101 MB / 335.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007802/0.1174, allocations: 214.5 kB / 335.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.1177, allocations: 84.8 kB / 335.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.1178, allocations: 4 kB / 335.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005178/0.1183, allocations: 173.8 kB / 335.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.1183, allocations: 0 / 335.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.00204/0.1203, allocations: 0.5105 MB / 336.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.1205, allocations: 106.8 kB / 336.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003021/0.1208, allocations: 286.5 kB / 336.6 MB, free: 10.83 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1208, allocations: 29.7 kB / 336.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1209, allocations: 199.5 kB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.121, allocations: 47.39 kB / 336.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.822e-05/0.1211, allocations: 53.84 kB / 336.9 MB, free: 10.49 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1212, allocations: 334.8 kB / 337.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.1215, allocations: 88.16 kB / 337.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.1219, allocations: 202.1 kB / 337.5 MB, free: 9.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.1226, allocations: 314.5 kB / 337.8 MB, free: 9.465 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1227, allocations: 0 / 337.8 MB, free: 9.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001169/0.1238, allocations: 420.5 kB / 338.2 MB, free: 9.039 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.1239, allocations: 37.69 kB / 338.3 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1239, allocations: 12.03 kB / 338.3 MB, free: 8.984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000311/0.1242, allocations: 72.75 kB / 338.4 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.1244, allocations: 47.89 kB / 338.4 MB, free: 8.863 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.1267, allocations: 1.703 MB / 340.1 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.1271, allocations: 55.72 kB / 340.2 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.1271, allocations: 19.97 kB / 340.2 MB, free: 6.945 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.0001489/0.1273, allocations: 155.4 kB / 340.3 MB, free: 6.785 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.913e-05/0.1273, allocations: 23.72 kB / 340.4 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.923e-05/0.1274, allocations: 21.7 kB / 340.4 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.1274, allocations: 4 kB / 340.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1274, allocations: 0 / 340.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1274, allocations: 0 / 340.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002639/0.1277, allocations: 313.3 kB / 340.7 MB, free: 6.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1277, allocations: 3.938 kB / 340.7 MB, free: 6.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.1278, allocations: 15.98 kB / 340.7 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002461/0.1281, allocations: 68.98 kB / 340.8 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.1281, allocations: 8 kB / 340.8 MB, free: 6.281 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/0.1302, allocations: 1.699 MB / 342.5 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1302, allocations: 0 / 342.5 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1312, allocations: 317.4 kB / 342.8 MB, free: 4.113 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.1313, allocations: 112.8 kB / 342.9 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.49e-05/0.1314, allocations: 4 kB / 342.9 MB, free: 3.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.1316, allocations: 23.97 kB / 342.9 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.139e-05/0.1317, allocations: 23.97 kB / 343 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.1318, allocations: 7.938 kB / 343 MB, free: 3.926 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000221/0.132, allocations: 209.9 kB / 343.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.132, allocations: 0 / 343.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004117/0.1324, allocations: 79.84 kB / 343.2 MB, free: 3.641 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.001379/0.1338, allocations: 0.8437 MB / 344.1 MB, free: 2.762 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.1349, allocations: 422.2 kB / 344.5 MB, free: 2.324 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1349, allocations: 4.25 kB / 344.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.1354, allocations: 214.6 kB / 344.7 MB, free: 2.098 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.1357, allocations: 45.05 kB / 344.8 MB, free: 2.055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00476/0.1405, allocations: 3.027 MB / 347.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.1408, allocations: 0.7556 MB / 348.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.1409, allocations: 22.3 kB / 348.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.141, allocations: 75.41 kB / 348.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.141, allocations: 0 / 348.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03831/0.1793, allocations: 6.673 MB / 355.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.71, allocations: 27.56 kB / 355.3 MB, free: 7.207 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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