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.001034/0.001034, allocations: 103 kB / 17.32 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001292, allocations: 58.78 kB / 306.6 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1134, allocations: 50.54 MB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005041/0.1185, allocations: 2.847 MB / 359.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.1204, allocations: 0.67 MB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003619/0.1208, allocations: 4 kB / 360.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.1212, allocations: 35.69 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004442/0.1216, allocations: 79.39 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003986/0.122, allocations: 79.91 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006868/0.1227, allocations: 370.5 kB / 361.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002838/0.123, allocations: 122.9 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/0.1233, allocations: 143.5 kB / 361.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.1235, allocations: 163.3 kB / 361.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.446e-05/0.1236, allocations: 32 kB / 361.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.315e-05/0.1237, allocations: 36 kB / 361.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.169e-05/0.1238, allocations: 83.67 kB / 361.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.124, allocations: 155.3 kB / 361.9 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004084/0.1244, allocations: 374.9 kB / 362.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1244, allocations: 4 kB / 362.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1244, allocations: 0 / 362.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.1245, allocations: 0 / 362.3 MB, free: 9.098 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.001533/0.126, allocations: 0.6614 MB / 362.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/0.1261, allocations: 8.031 kB / 362.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001175/0.1262, allocations: 62.72 kB / 363 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1263, allocations: 32.56 kB / 363 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.1267, allocations: 276.6 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.1268, allocations: 16.94 kB / 363.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.1268, allocations: 24.38 kB / 363.3 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007526/0.1276, allocations: 311.5 kB / 363.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.1276, allocations: 3.938 kB / 363.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.1276, allocations: 12 kB / 363.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.1276, allocations: 4 kB / 363.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007772/0.1284, allocations: 253.6 kB / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.1304, allocations: 1.089 MB / 365 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008217/0.1312, allocations: 210.6 kB / 365.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003216/0.1315, allocations: 96.72 kB / 365.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.1316, allocations: 8 kB / 365.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005856/0.1322, allocations: 157.9 kB / 365.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.094e-06/0.1322, allocations: 0 / 365.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.00225/0.1345, allocations: 0.5105 MB / 366 MB, free: 5.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.1345, allocations: 106.8 kB / 366.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.1349, allocations: 290.5 kB / 366.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.1349, allocations: 25.7 kB / 366.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.1351, allocations: 203.5 kB / 366.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.154e-05/0.1351, allocations: 39.48 kB / 366.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1352, allocations: 57.84 kB / 366.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1354, allocations: 330.8 kB / 367 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000345/0.1357, allocations: 96.09 kB / 367.1 MB, free: 3.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000404/0.1362, allocations: 198.1 kB / 367.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000699/0.1369, allocations: 315.8 kB / 367.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1369, allocations: 0 / 367.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001269/0.1382, allocations: 423.5 kB / 368 MB, free: 2.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.1382, allocations: 41.91 kB / 368 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.1382, allocations: 7.922 kB / 368 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003943/0.1386, allocations: 80.75 kB / 368.1 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.1389, allocations: 43.95 kB / 368.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002477/0.1414, allocations: 1.704 MB / 369.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/0.1417, allocations: 63.61 kB / 369.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-05/0.1418, allocations: 12 kB / 369.9 MB, free: 0.8008 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.0001869/0.142, allocations: 157.3 kB / 370.1 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.646e-05/0.142, allocations: 19.81 kB / 370.1 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.596e-05/0.1421, allocations: 21.7 kB / 370.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1421, allocations: 4 kB / 370.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/0.1421, allocations: 4 kB / 370.1 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1421, allocations: 0 / 370.1 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.1425, allocations: 305.5 kB / 370.4 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1425, allocations: 7.938 kB / 370.5 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.1426, allocations: 19.97 kB / 370.5 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002614/0.1429, allocations: 68.81 kB / 370.5 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.1429, allocations: 0 / 370.5 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1879/0.3309, allocations: 1.692 MB / 372.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3309, allocations: 0.625 kB / 372.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.3319, allocations: 317.4 kB / 372.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3321, allocations: 112.8 kB / 372.7 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.3321, allocations: 3.984 kB / 372.7 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.3324, allocations: 33.16 kB / 372.7 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.665e-05/0.3325, allocations: 23 kB / 372.7 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.3325, allocations: 4.047 kB / 372.7 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.3327, allocations: 201.9 kB / 372.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.3327, allocations: 0 / 372.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000393/0.3331, allocations: 81 kB / 373 MB, free: 18.85 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.001205/0.3343, allocations: 0.8521 MB / 373.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009712/0.3353, allocations: 416.4 kB / 374.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3353, allocations: 0.9688 kB / 374.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004425/0.3358, allocations: 227.1 kB / 374.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.3361, allocations: 44.55 kB / 374.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005186/0.3413, allocations: 3.098 MB / 377.6 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.3415, allocations: 0.7516 MB / 378.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.3417, allocations: 25.44 kB / 378.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.3418, allocations: 77.61 kB / 378.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3418, allocations: 1.375 kB / 378.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.3663, allocations: 6.448 MB / 384.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/0.3665, allocations: 231.9 kB / 385.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/2.424, allocations: 3.938 kB / 385.1 MB, free: 13.79 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