Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001315, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001278, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 68.08 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.286, allocations: 50.54 MB / 408.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004576/0.2906, allocations: 2.963 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2922, allocations: 0.7518 MB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.2925, allocations: 4 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.2927, allocations: 47.52 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.2929, allocations: 111.2 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000333/0.2933, allocations: 111.8 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005298/0.2938, allocations: 418.4 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.2941, allocations: 131.2 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.2943, allocations: 155.4 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.2945, allocations: 175.2 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.039e-05/0.2946, allocations: 40 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.298e-05/0.2946, allocations: 40 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.358e-05/0.2947, allocations: 79.7 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.2949, allocations: 171.2 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005291/0.2955, allocations: 457.3 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2955, allocations: 0 / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2955, allocations: 0 / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.2955, allocations: 4 kB / 414.5 MB, free: 11.81 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001362/0.2969, allocations: 0.6806 MB / 415.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.2969, allocations: 8.031 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.15e-05/0.297, allocations: 66.66 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.524e-05/0.2971, allocations: 40.7 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.2976, allocations: 303.7 kB / 415.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.2977, allocations: 20.94 kB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.2978, allocations: 24.38 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008545/0.2986, allocations: 327.8 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2986, allocations: 0 / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.2987, allocations: 8 kB / 415.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.2987, allocations: 11.98 kB / 415.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008894/0.2996, allocations: 290 kB / 416.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.3017, allocations: 1.139 MB / 417.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.3027, allocations: 250.5 kB / 417.6 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.303, allocations: 100.8 kB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.3031, allocations: 4 kB / 417.7 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005555/0.3036, allocations: 181.8 kB / 417.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.3036, allocations: 0 / 417.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002453/0.3061, allocations: 0.6818 MB / 418.6 MB, free: 7.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/0.3062, allocations: 102.8 kB / 418.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/0.3066, allocations: 286.6 kB / 419 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.3067, allocations: 25.7 kB / 419 MB, free: 7.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.3068, allocations: 208.1 kB / 419.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.782e-05/0.3069, allocations: 47.58 kB / 419.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.539e-05/0.307, allocations: 50.16 kB / 419.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3072, allocations: 334.8 kB / 419.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.3076, allocations: 108.3 kB / 419.7 MB, free: 6.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004396/0.308, allocations: 200.9 kB / 419.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000751/0.3088, allocations: 318.2 kB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3088, allocations: 0 / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001313/0.3101, allocations: 479.6 kB / 420.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.375e-05/0.3101, allocations: 37.69 kB / 420.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.3102, allocations: 4 kB / 420.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000321/0.3105, allocations: 80.8 kB / 420.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.3107, allocations: 51.97 kB / 420.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002959/0.3137, allocations: 1.998 MB / 422.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.3141, allocations: 59.86 kB / 422.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.3141, allocations: 15.94 kB / 422.9 MB, free: 2.797 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002064/0.3143, allocations: 145.7 kB / 423.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.247e-05/0.3144, allocations: 23.86 kB / 423.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.285e-05/0.3144, allocations: 25.83 kB / 423.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3145, allocations: 4 kB / 423.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.3145, allocations: 0 / 423.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3145, allocations: 0 / 423.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003454/0.3148, allocations: 333.3 kB / 423.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3148, allocations: 4 kB / 423.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/0.315, allocations: 19.97 kB / 423.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002904/0.3153, allocations: 76.81 kB / 423.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.3153, allocations: 11.98 kB / 423.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002518/0.3178, allocations: 1.805 MB / 425.4 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3179, allocations: 32 / 425.4 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.319, allocations: 373.5 kB / 425.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.817e-05/0.3191, allocations: 108.9 kB / 425.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.61e-05/0.3191, allocations: 4 kB / 425.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.3194, allocations: 27.97 kB / 425.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.3195, allocations: 23.91 kB / 425.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.3195, allocations: 8 kB / 425.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.3197, allocations: 205.9 kB / 426.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3197, allocations: 0 / 426.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004231/0.3202, allocations: 79.89 kB / 426.2 MB, free: 15.29 MB / 350.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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001534/0.3217, allocations: 0.9014 MB / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.3229, allocations: 445.8 kB / 427.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3229, allocations: 0 / 427.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000512/0.3234, allocations: 242.8 kB / 427.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.3238, allocations: 44.73 kB / 427.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005588/0.3294, allocations: 3.116 MB / 430.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.3298, allocations: 0.7558 MB / 431.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001315/0.33, allocations: 22.3 kB / 431.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.3301, allocations: 83.41 kB / 431.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3301, allocations: 0 / 431.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.3647, allocations: 6.888 MB / 438.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.79, allocations: 19.31 kB / 438.7 MB, free: 2.734 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gain.opAmp.out.v,gain.opAmp.out.i Variables in the result:Vin,f,gain.R1,gain.R2,gain.V0,gain.Vns,gain.Vps,gain.i1,gain.i2,gain.k,gain.n1.i,gain.n1.v,gain.n2.i,gain.n2.v,gain.opAmp.V0,gain.opAmp.Vns,gain.opAmp.Vps,gain.opAmp.homotopyType,gain.opAmp.i_s,gain.opAmp.in_n.i,gain.opAmp.in_n.v,gain.opAmp.in_p.i,gain.opAmp.in_p.v,gain.opAmp.out.i,gain.opAmp.out.v,gain.opAmp.p_in,gain.opAmp.p_out,gain.opAmp.p_s,gain.opAmp.strict,gain.opAmp.useSupply,gain.opAmp.v_in,gain.opAmp.v_out,gain.opAmp.vns,gain.opAmp.vps,gain.p1.i,gain.p1.v,gain.p2.i,gain.p2.v,gain.r1.LossPower,gain.r1.R,gain.r1.R_actual,gain.r1.T,gain.r1.T_heatPort,gain.r1.T_ref,gain.r1.alpha,gain.r1.i,gain.r1.n.i,gain.r1.n.v,gain.r1.p.i,gain.r1.p.v,gain.r1.useHeatPort,gain.r1.v,gain.r2.LossPower,gain.r2.R,gain.r2.R_actual,gain.r2.T,gain.r2.T_heatPort,gain.r2.T_ref,gain.r2.alpha,gain.r2.i,gain.r2.n.i,gain.r2.n.v,gain.r2.p.i,gain.r2.p.v,gain.r2.useHeatPort,gain.r2.v,gain.v1,gain.v2,ground.p.i,ground.p.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