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.001678/0.001678, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001991/0.001991, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 63.91 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2684, allocations: 50.56 MB / 408.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003883/0.2723, allocations: 2.803 MB / 411.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2736, allocations: 0.6777 MB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.2737, allocations: 4 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.2738, allocations: 43.56 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001746/0.274, allocations: 87.2 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003501/0.2744, allocations: 87.81 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004482/0.2749, allocations: 386.5 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.2751, allocations: 122.9 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.2753, allocations: 143.5 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.2755, allocations: 163.3 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/0.2756, allocations: 36 kB / 413.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.194e-05/0.2757, allocations: 36 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.566e-05/0.2758, allocations: 71.75 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.276, allocations: 167.2 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004303/0.2764, allocations: 373.5 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2764, allocations: 4 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2764, allocations: 0 / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2764, allocations: 0 / 414 MB, free: 12.27 MB / 334.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.001303/0.2777, allocations: 0.6612 MB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2778, allocations: 8.031 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.982e-05/0.2779, allocations: 62.72 kB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.144e-05/0.278, allocations: 36.7 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.2784, allocations: 276.8 kB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.2784, allocations: 24.94 kB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.001e-05/0.2785, allocations: 24.38 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007018/0.2792, allocations: 299.5 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2792, allocations: 0 / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.2792, allocations: 12 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.2792, allocations: 15.98 kB / 415.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008415/0.2801, allocations: 245.5 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.2818, allocations: 1.086 MB / 416.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008249/0.2826, allocations: 214.5 kB / 417 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.283, allocations: 100.8 kB / 417.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.283, allocations: 0 / 417.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004684/0.2835, allocations: 165.9 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.203e-06/0.2835, allocations: 0 / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002129/0.2856, allocations: 0.5107 MB / 417.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.2857, allocations: 106.8 kB / 417.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.286, allocations: 286.6 kB / 418.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.2861, allocations: 33.7 kB / 418.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.2862, allocations: 200 kB / 418.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.2863, allocations: 39.62 kB / 418.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.878e-05/0.2864, allocations: 53.89 kB / 418.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2865, allocations: 334.8 kB / 418.8 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.2869, allocations: 100.2 kB / 418.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.2873, allocations: 202.1 kB / 419.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00074/0.2881, allocations: 309.4 kB / 419.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2881, allocations: 0 / 419.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001237/0.2893, allocations: 419.8 kB / 419.8 MB, free: 6.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.2894, allocations: 37.7 kB / 419.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.2894, allocations: 7.938 kB / 419.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003647/0.2898, allocations: 76.83 kB / 419.9 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.29, allocations: 43.97 kB / 419.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002665/0.2927, allocations: 1.727 MB / 421.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.293, allocations: 47.81 kB / 421.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.2931, allocations: 15.94 kB / 421.7 MB, free: 3.973 MB / 334.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.0001661/0.2932, allocations: 149.6 kB / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.251e-05/0.2933, allocations: 27.81 kB / 421.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.722e-05/0.2934, allocations: 33.7 kB / 421.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.2934, allocations: 0 / 421.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.2934, allocations: 0 / 421.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2934, allocations: 0 / 421.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003143/0.2937, allocations: 309.3 kB / 422.2 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2937, allocations: 0 / 422.2 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.2939, allocations: 15.98 kB / 422.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002836/0.2941, allocations: 72.8 kB / 422.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.2942, allocations: 0 / 422.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002408/0.2966, allocations: 1.704 MB / 424 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2966, allocations: 3.984 kB / 424 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.2977, allocations: 313.6 kB / 424.3 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.2979, allocations: 112.9 kB / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/0.2979, allocations: 4 kB / 424.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.2982, allocations: 27.97 kB / 424.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.425e-05/0.2983, allocations: 23.97 kB / 424.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.2983, allocations: 7.938 kB / 424.5 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.2985, allocations: 202 kB / 424.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2985, allocations: 3.938 kB / 424.7 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.2989, allocations: 79.89 kB / 424.8 MB, free: 0.6641 MB / 334.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.001418/0.3003, allocations: 0.8521 MB / 425.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.3015, allocations: 414.1 kB / 426 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.3015, allocations: 4 kB / 426 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005042/0.302, allocations: 222.5 kB / 426.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.3023, allocations: 49.17 kB / 426.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.3077, allocations: 3.003 MB / 429.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.3081, allocations: 0.7479 MB / 430.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.3082, allocations: 22.3 kB / 430.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3083, allocations: 83.41 kB / 430.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3083, allocations: 0 / 430.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03107/0.3394, allocations: 6.815 MB / 437 MB, free: 4.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.07, allocations: 8.391 kB / 437 MB, free: 4.359 MB / 350.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.1.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