Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001338/0.001338, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001807/0.001807, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 64.22 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004875/0.1064, allocations: 2.802 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.108, allocations: 0.6894 MB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003198/0.1083, allocations: 4 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.1087, allocations: 39.58 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003879/0.1091, allocations: 95.19 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003534/0.1095, allocations: 83.83 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000567/0.11, allocations: 378.5 kB / 361.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.1104, allocations: 126.9 kB / 361.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/0.1107, allocations: 143.5 kB / 361.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.1109, allocations: 159.3 kB / 362.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.423e-05/0.111, allocations: 36 kB / 362.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.68e-05/0.1112, allocations: 40 kB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.1112, allocations: 71.75 kB / 362.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.1115, allocations: 167.2 kB / 362.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004491/0.1119, allocations: 371 kB / 362.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1119, allocations: 11.88 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1119, allocations: 0 / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.112, allocations: 0 / 362.8 MB, free: 8.773 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.001457/0.1134, allocations: 0.6497 MB / 363.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1135, allocations: 8.031 kB / 363.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.438e-05/0.1136, allocations: 58.73 kB / 363.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.393e-05/0.1137, allocations: 40.55 kB / 363.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.114, allocations: 272.6 kB / 363.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.1141, allocations: 24.94 kB / 363.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.023e-05/0.1141, allocations: 24.38 kB / 363.8 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007161/0.1148, allocations: 295.5 kB / 364.1 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1149, allocations: 4 kB / 364.1 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/0.1149, allocations: 8 kB / 364.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1149, allocations: 8 kB / 364.1 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008377/0.1158, allocations: 253.5 kB / 364.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.1176, allocations: 1.089 MB / 365.5 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008216/0.1184, allocations: 210.5 kB / 365.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.1188, allocations: 104.7 kB / 365.8 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.1188, allocations: 0 / 365.8 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005309/0.1193, allocations: 165.9 kB / 365.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.1194, allocations: 0 / 365.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002187/0.1215, allocations: 0.5147 MB / 366.5 MB, free: 4.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.1216, allocations: 106.8 kB / 366.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.1219, allocations: 286.6 kB / 366.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.122, allocations: 29.7 kB / 366.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1221, allocations: 199.5 kB / 367.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.1222, allocations: 39.47 kB / 367.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.1223, allocations: 57.84 kB / 367.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1224, allocations: 330.8 kB / 367.5 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.1228, allocations: 100.2 kB / 367.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/0.1232, allocations: 199.7 kB / 367.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007359/0.124, allocations: 303.9 kB / 368.1 MB, free: 3.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.124, allocations: 0 / 368.1 MB, free: 3.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001279/0.1253, allocations: 427.7 kB / 368.5 MB, free: 2.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.1253, allocations: 33.7 kB / 368.5 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1253, allocations: 7.938 kB / 368.5 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000363/0.1257, allocations: 76.89 kB / 368.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.1259, allocations: 43.91 kB / 368.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/0.1284, allocations: 1.711 MB / 370.4 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.1288, allocations: 55.56 kB / 370.4 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/0.1288, allocations: 19.94 kB / 370.4 MB, free: 0.4961 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.0001509/0.129, allocations: 146.2 kB / 370.6 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.1291, allocations: 27.8 kB / 370.6 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.287e-05/0.1291, allocations: 21.72 kB / 370.6 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1291, allocations: 3.984 kB / 370.6 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1291, allocations: 3.938 kB / 370.6 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1291, allocations: 0 / 370.6 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.175/0.3041, allocations: 298.4 kB / 370.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.3042, allocations: 0 / 370.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.3044, allocations: 22 kB / 371 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003376/0.3047, allocations: 71.5 kB / 371 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.3048, allocations: 2.453 kB / 371 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.3069, allocations: 1.706 MB / 372.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3069, allocations: 1.094 kB / 372.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.308, allocations: 314.8 kB / 373 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.3081, allocations: 106.7 kB / 373.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.427e-05/0.3082, allocations: 8.188 kB / 373.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.3085, allocations: 29.5 kB / 373.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.567e-05/0.3086, allocations: 21.98 kB / 373.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.3086, allocations: 7.297 kB / 373.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.3088, allocations: 200.8 kB / 373.4 MB, free: 18.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.3088, allocations: 0 / 373.4 MB, free: 18.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004168/0.3092, allocations: 87.27 kB / 373.5 MB, free: 18.6 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.00133/0.3106, allocations: 0.8439 MB / 374.3 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.3117, allocations: 418.4 kB / 374.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3117, allocations: 0 / 374.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004564/0.3121, allocations: 223.3 kB / 375 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.3125, allocations: 44.2 kB / 375 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00572/0.3182, allocations: 3.018 MB / 378 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.3185, allocations: 0.7555 MB / 378.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.3186, allocations: 29.45 kB / 378.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3188, allocations: 73.81 kB / 378.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3188, allocations: 0 / 378.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1436/0.4624, allocations: 6.704 MB / 385.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.74/16.2, allocations: 1.312 kB / 385.6 MB, free: 13.68 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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