Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007688/0.0007689, allocations: 107.7 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002039/0.0002039, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1797, allocations: 51.3 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.002068/0.1818, allocations: 2.509 MB / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008001/0.1827, allocations: 0.717 MB / 411.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1828, allocations: 4.938 kB / 411.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1829, allocations: 39.69 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.183, allocations: 80.88 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.1832, allocations: 81.97 kB / 411.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000239/0.1835, allocations: 366.5 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.1837, allocations: 104.6 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.1838, allocations: 123.5 kB / 412.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.1839, allocations: 152.2 kB / 412.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.184, allocations: 20 kB / 412.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.989e-05/0.184, allocations: 16.88 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.021e-05/0.1841, allocations: 55.75 kB / 412.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1842, allocations: 170.4 kB / 412.6 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.1844, allocations: 348.3 kB / 412.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1844, allocations: 0 / 412.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1844, allocations: 0 / 412.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1844, allocations: 0 / 412.9 MB, free: 22.89 MB / 298.7 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.001016/0.1854, allocations: 0.6459 MB / 413.5 MB, free: 22.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.1855, allocations: 8.031 kB / 413.6 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.779e-05/0.1856, allocations: 58.73 kB / 413.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.1e-05/0.1856, allocations: 32.56 kB / 413.6 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.1859, allocations: 311.5 kB / 413.9 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.1859, allocations: 24.94 kB / 414 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.186, allocations: 20.38 kB / 414 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006326/0.1866, allocations: 343.8 kB / 414.3 MB, free: 21.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1866, allocations: 0 / 414.3 MB, free: 21.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.1867, allocations: 4 kB / 414.3 MB, free: 21.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1867, allocations: 8 kB / 414.3 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007505/0.1874, allocations: 322 kB / 414.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.189, allocations: 1.174 MB / 415.8 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007734/0.1898, allocations: 282.1 kB / 416.1 MB, free: 19.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.1901, allocations: 124.8 kB / 416.2 MB, free: 19.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.1901, allocations: 0 / 416.2 MB, free: 19.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004384/0.1906, allocations: 205.7 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.422e-06/0.1906, allocations: 0 / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002148/0.1928, allocations: 0.7372 MB / 417.2 MB, free: 18.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.1928, allocations: 106.8 kB / 417.3 MB, free: 18.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.193, allocations: 282.6 kB / 417.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1931, allocations: 29.7 kB / 417.6 MB, free: 17.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.709e-05/0.1931, allocations: 203.6 kB / 417.8 MB, free: 17.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.478e-05/0.1932, allocations: 47.38 kB / 417.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.265e-05/0.1932, allocations: 4 kB / 417.8 MB, free: 17.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.1932, allocations: 334.8 kB / 418.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.1936, allocations: 124.2 kB / 418.3 MB, free: 17.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.1939, allocations: 217.2 kB / 418.5 MB, free: 16.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006151/0.1945, allocations: 351.5 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1946, allocations: 8 kB / 418.8 MB, free: 16.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001122/0.1957, allocations: 0.5074 MB / 419.3 MB, free: 16.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.1957, allocations: 37.7 kB / 419.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1957, allocations: 0 / 419.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003322/0.1961, allocations: 104.8 kB / 419.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.1963, allocations: 51.91 kB / 419.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/0.1984, allocations: 1.912 MB / 421.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.1988, allocations: 63.98 kB / 421.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.1988, allocations: 16 kB / 421.5 MB, free: 13.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.199, allocations: 153.6 kB / 421.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.199, allocations: 23.72 kB / 421.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.199, allocations: 25.83 kB / 421.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1991, allocations: 4 kB / 421.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.1991, allocations: 0 / 421.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1991, allocations: 3.984 kB / 421.7 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.1993, allocations: 325.4 kB / 422 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1993, allocations: 0 / 422 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.1994, allocations: 27.97 kB / 422.1 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002543/0.1997, allocations: 92.92 kB / 422.2 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.1997, allocations: 4 kB / 422.2 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.2014, allocations: 1.826 MB / 424 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2015, allocations: 0 / 424 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009453/0.2024, allocations: 406.5 kB / 424.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.481e-05/0.2025, allocations: 100.8 kB / 424.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.2025, allocations: 4 kB / 424.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.2027, allocations: 43.95 kB / 424.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-05/0.2028, allocations: 23.97 kB / 424.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.2029, allocations: 0 / 424.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001472/0.203, allocations: 206 kB / 424.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.203, allocations: 0 / 424.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003725/0.2034, allocations: 71.84 kB / 424.8 MB, free: 10.17 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001106/0.2045, allocations: 0.9518 MB / 425.8 MB, free: 9.184 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.2056, allocations: 0.5253 MB / 426.3 MB, free: 8.633 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2057, allocations: 0 / 426.3 MB, free: 8.633 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004047/0.2061, allocations: 255.1 kB / 426.6 MB, free: 8.371 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.2064, allocations: 57.03 kB / 426.6 MB, free: 8.316 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004621/0.211, allocations: 2.367 MB / 429 MB, free: 5.855 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.2112, allocations: 0.7558 MB / 429.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.2113, allocations: 83.41 kB / 429.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2113, allocations: 0 / 429.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.896/3.107, allocations: 5.409 MB / 435.2 MB, free: 15.59 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,buffer.opAmp.out.v,buffer.opAmp.out.i Variables in the result:Vin,buffer.R1,buffer.R2,buffer.V0,buffer.Vns,buffer.Vps,buffer.i1,buffer.i2,buffer.k,buffer.n1.i,buffer.n1.v,buffer.n2.i,buffer.n2.v,buffer.opAmp.V0,buffer.opAmp.Vns,buffer.opAmp.Vps,buffer.opAmp.homotopyType,buffer.opAmp.i_s,buffer.opAmp.in_n.i,buffer.opAmp.in_n.v,buffer.opAmp.in_p.i,buffer.opAmp.in_p.v,buffer.opAmp.out.i,buffer.opAmp.out.v,buffer.opAmp.p_in,buffer.opAmp.p_out,buffer.opAmp.p_s,buffer.opAmp.simplifiedExpr,buffer.opAmp.strict,buffer.opAmp.useSupply,buffer.opAmp.v_in,buffer.opAmp.v_out,buffer.opAmp.vns,buffer.opAmp.vps,buffer.p1.i,buffer.p1.v,buffer.p2.i,buffer.p2.v,buffer.r1.LossPower,buffer.r1.R,buffer.r1.R_actual,buffer.r1.T,buffer.r1.T_heatPort,buffer.r1.T_ref,buffer.r1.alpha,buffer.r1.i,buffer.r1.n.i,buffer.r1.n.v,buffer.r1.p.i,buffer.r1.p.v,buffer.r1.useHeatPort,buffer.r1.v,buffer.r2.LossPower,buffer.r2.R,buffer.r2.R_actual,buffer.r2.T,buffer.r2.T_heatPort,buffer.r2.T_ref,buffer.r2.alpha,buffer.r2.i,buffer.r2.n.i,buffer.r2.n.v,buffer.r2.p.i,buffer.r2.p.v,buffer.r2.useHeatPort,buffer.r2.v,buffer.v1,buffer.v2,f,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.T_falling,vIn.signalSource.T_rising,vIn.signalSource.T_start,vIn.signalSource.T_width,vIn.signalSource.amplitude,vIn.signalSource.count,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