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.001051/0.001052, allocations: 110.8 kB / 17.28 MB, free: 6.199 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.001055/0.001055, allocations: 185.4 kB / 18.2 MB, free: 5.277 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.437/1.437, allocations: 205.1 MB / 224.1 MB, free: 12.42 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.001355/0.001355, allocations: 52.14 kB / 280.3 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1071, allocations: 46.62 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003819/0.1109, allocations: 2.807 MB / 329.7 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1121, allocations: 0.6787 MB / 330.4 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.1123, allocations: 4 kB / 330.4 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.1125, allocations: 27.77 kB / 330.4 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.1127, allocations: 83.38 kB / 330.5 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.1129, allocations: 79.92 kB / 330.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.1133, allocations: 374.5 kB / 330.9 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.1135, allocations: 122.9 kB / 331 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.1137, allocations: 143.4 kB / 331.2 MB, free: 372 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.1139, allocations: 163.3 kB / 331.3 MB, free: 208 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-05/0.1139, allocations: 36 kB / 331.4 MB, free: 172 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.702e-05/0.114, allocations: 32 kB / 331.4 MB, free: 140 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.104e-05/0.1141, allocations: 79.73 kB / 331.5 MB, free: 60 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.1143, allocations: 159.2 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.1146, allocations: 374.9 kB / 332 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1146, allocations: 0 / 332 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1146, allocations: 4 kB / 332 MB, free: 15.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1146, allocations: 3.938 kB / 332 MB, free: 15.53 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.001221/0.1159, allocations: 0.6497 MB / 332.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.1159, allocations: 8.031 kB / 332.7 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.341e-05/0.116, allocations: 62.72 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.374e-05/0.1161, allocations: 32.56 kB / 332.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.1164, allocations: 268.8 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.1164, allocations: 16.94 kB / 333 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.1164, allocations: 20.38 kB / 333.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.1171, allocations: 311.5 kB / 333.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1171, allocations: 0 / 333.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.1171, allocations: 19.98 kB / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.1171, allocations: 7.938 kB / 333.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000726/0.1179, allocations: 253.6 kB / 333.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.1195, allocations: 1.093 MB / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007166/0.1202, allocations: 214.6 kB / 334.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.1205, allocations: 88.78 kB / 335 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.1205, allocations: 11.94 kB / 335 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004851/0.121, allocations: 157.9 kB / 335.2 MB, free: 12.1 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.121, allocations: 0 / 335.2 MB, free: 12.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.00195/0.123, allocations: 0.5144 MB / 335.7 MB, free: 11.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1231, allocations: 110.8 kB / 335.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.1233, allocations: 286.6 kB / 336.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.1234, allocations: 25.7 kB / 336.1 MB, free: 11.11 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1235, allocations: 203.6 kB / 336.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.1235, allocations: 39.39 kB / 336.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/0.1236, allocations: 61.84 kB / 336.4 MB, free: 10.8 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1237, allocations: 330.8 kB / 336.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.1241, allocations: 92.16 kB / 336.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.1244, allocations: 194.1 kB / 337 MB, free: 10.14 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006333/0.1251, allocations: 306.4 kB / 337.3 MB, free: 9.789 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1251, allocations: 4 kB / 337.3 MB, free: 9.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00111/0.1262, allocations: 428.4 kB / 337.7 MB, free: 9.352 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.1262, allocations: 33.7 kB / 337.8 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.1263, allocations: 12.03 kB / 337.8 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003162/0.1266, allocations: 72.73 kB / 337.9 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.1268, allocations: 47.91 kB / 337.9 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.129, allocations: 1.707 MB / 339.6 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/0.1294, allocations: 59.7 kB / 339.7 MB, free: 7.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.1294, allocations: 8 kB / 339.7 MB, free: 7.266 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.000148/0.1296, allocations: 156 kB / 339.8 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.1296, allocations: 23.72 kB / 339.9 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.016e-05/0.1297, allocations: 25.7 kB / 339.9 MB, free: 7.055 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1297, allocations: 4 kB / 339.9 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.1297, allocations: 0 / 339.9 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1297, allocations: 0 / 339.9 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002551/0.13, allocations: 309.3 kB / 340.2 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.13, allocations: 0 / 340.2 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.1301, allocations: 19.97 kB / 340.2 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002592/0.1304, allocations: 68.81 kB / 340.3 MB, free: 6.609 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.1304, allocations: 7.984 kB / 340.3 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002001/0.1324, allocations: 1.7 MB / 342 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1324, allocations: 3.938 kB / 342 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009275/0.1333, allocations: 317.8 kB / 342.3 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1335, allocations: 120.7 kB / 342.4 MB, free: 4.293 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.1335, allocations: 3.984 kB / 342.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.1338, allocations: 31.95 kB / 342.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.478e-05/0.1338, allocations: 19.97 kB / 342.5 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.1339, allocations: 7.938 kB / 342.5 MB, free: 4.23 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.1341, allocations: 210 kB / 342.7 MB, free: 4.023 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1341, allocations: 0 / 342.7 MB, free: 4.023 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.1344, allocations: 75.84 kB / 342.7 MB, free: 3.949 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.001238/0.1357, allocations: 0.847 MB / 343.6 MB, free: 3.066 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009429/0.1366, allocations: 418.3 kB / 344 MB, free: 2.633 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.1366, allocations: 8.188 kB / 344 MB, free: 2.625 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.1371, allocations: 210.6 kB / 344.2 MB, free: 2.406 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.1374, allocations: 40.86 kB / 344.3 MB, free: 2.367 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.1423, allocations: 3.113 MB / 347.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.1427, allocations: 0.7556 MB / 348.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.1429, allocations: 26.28 kB / 348.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.143, allocations: 75.42 kB / 348.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.143, allocations: 3.938 kB / 348.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.1667, allocations: 6.465 MB / 354.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002393/0.167, allocations: 231.8 kB / 354.9 MB, free: 7.461 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.09, allocations: 0 / 354.9 MB, free: 7.461 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