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.00163/0.00163, allocations: 118.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001982/0.001982, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2861, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004083/0.2903, allocations: 2.932 MB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2916, allocations: 0.7557 MB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.2917, allocations: 8 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.2919, allocations: 51.5 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.2921, allocations: 103.2 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002992/0.2924, allocations: 111.8 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.2929, allocations: 414.4 kB / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.2931, allocations: 135.2 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.2933, allocations: 167.3 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.2935, allocations: 167.3 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.509e-05/0.2936, allocations: 40 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.359e-05/0.2936, allocations: 40 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.835e-05/0.2937, allocations: 83.69 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.2939, allocations: 175.2 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004218/0.2943, allocations: 452.2 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2943, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2943, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2943, allocations: 0 / 414.4 MB, free: 11.89 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.001265/0.2956, allocations: 0.6808 MB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2956, allocations: 8.031 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.2957, allocations: 58.73 kB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.733e-05/0.2958, allocations: 40.5 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.2962, allocations: 299.6 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.2962, allocations: 28.88 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.2963, allocations: 24.38 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008003/0.2971, allocations: 327.8 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2971, allocations: 3.938 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.2971, allocations: 8 kB / 415.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.2972, allocations: 8 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000813/0.298, allocations: 286.1 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.3, allocations: 1.143 MB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008507/0.3008, allocations: 254.5 kB / 417.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003498/0.3012, allocations: 112.8 kB / 417.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.3012, allocations: 4 kB / 417.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004969/0.3017, allocations: 177.5 kB / 417.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.432e-06/0.3017, allocations: 4 kB / 417.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002346/0.3041, allocations: 0.6629 MB / 418.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.3042, allocations: 102.8 kB / 418.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.3045, allocations: 290.6 kB / 418.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.3045, allocations: 25.7 kB / 418.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.3047, allocations: 203.6 kB / 419.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/0.3047, allocations: 39.39 kB / 419.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.231e-05/0.3048, allocations: 53.84 kB / 419.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.305, allocations: 335 kB / 419.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.3053, allocations: 112.4 kB / 419.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/0.3058, allocations: 208.7 kB / 419.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007362/0.3065, allocations: 311.7 kB / 420.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3065, allocations: 0 / 420.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001239/0.3078, allocations: 471.7 kB / 420.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.214e-05/0.3078, allocations: 36.98 kB / 420.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3079, allocations: 4 kB / 420.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003749/0.3082, allocations: 88.86 kB / 420.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.3085, allocations: 43.91 kB / 420.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.3112, allocations: 1.993 MB / 422.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.3115, allocations: 56 kB / 422.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.3116, allocations: 15.94 kB / 422.8 MB, free: 2.895 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.0001656/0.3117, allocations: 149.7 kB / 423 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.068e-05/0.3118, allocations: 23.72 kB / 423 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.468e-05/0.3118, allocations: 29.83 kB / 423 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.3118, allocations: 4 kB / 423 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.3119, allocations: 0 / 423 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3119, allocations: 0 / 423 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003067/0.3122, allocations: 329.3 kB / 423.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3122, allocations: 0 / 423.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.3123, allocations: 27.91 kB / 423.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003043/0.3126, allocations: 84.73 kB / 423.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.3127, allocations: 4 kB / 423.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002285/0.315, allocations: 1.809 MB / 425.3 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.315, allocations: 8.016 kB / 425.3 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3161, allocations: 365.5 kB / 425.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.892e-05/0.3161, allocations: 104.8 kB / 425.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.181e-05/0.3162, allocations: 4 kB / 425.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.3164, allocations: 35.95 kB / 425.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.289e-05/0.3165, allocations: 15.98 kB / 425.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.3165, allocations: 15.92 kB / 425.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.3167, allocations: 194 kB / 426 MB, free: 15.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3168, allocations: 0 / 426 MB, free: 15.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.3171, allocations: 79.84 kB / 426.1 MB, free: 15.38 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.001437/0.3186, allocations: 0.9101 MB / 427 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.3197, allocations: 429.7 kB / 427.4 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3197, allocations: 0 / 427.4 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004877/0.3202, allocations: 243.2 kB / 427.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.3206, allocations: 40.53 kB / 427.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005237/0.3258, allocations: 3.105 MB / 430.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.3262, allocations: 0.7518 MB / 431.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.3263, allocations: 30.27 kB / 431.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.3264, allocations: 87.41 kB / 431.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3264, allocations: 0 / 431.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02981/0.3563, allocations: 7.04 MB / 438.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.43, allocations: 11.98 kB / 438.7 MB, free: 2.695 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.0.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