Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009754/0.0009755, allocations: 191.3 kB / 17.38 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007508/0.0007508, allocations: 101.2 kB / 296.7 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002118/0.0002118, allocations: 8 kB / 356.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1853, allocations: 51.29 MB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.002048/0.1874, allocations: 2.511 MB / 410.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008687/0.1883, allocations: 0.7217 MB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1884, allocations: 4 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.1886, allocations: 35.69 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.1887, allocations: 85.72 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.189, allocations: 67.84 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.1892, allocations: 375.8 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.1894, allocations: 113.4 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1895, allocations: 119.5 kB / 412.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.1897, allocations: 148 kB / 412.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.1897, allocations: 20 kB / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.116e-05/0.1898, allocations: 17.56 kB / 412.3 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.196e-05/0.1898, allocations: 51.77 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.1899, allocations: 173 kB / 412.6 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.1902, allocations: 348.3 kB / 412.9 MB, free: 22.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1902, allocations: 4 kB / 412.9 MB, free: 22.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1902, allocations: 0 / 412.9 MB, free: 22.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1902, allocations: 0 / 412.9 MB, free: 22.87 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.0009438/0.1911, allocations: 0.6381 MB / 413.5 MB, free: 22.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1912, allocations: 12.03 kB / 413.6 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.979e-05/0.1912, allocations: 62.72 kB / 413.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.377e-05/0.1913, allocations: 40.56 kB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002343/0.1915, allocations: 299.5 kB / 413.9 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.1916, allocations: 16.94 kB / 414 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.1916, allocations: 32.36 kB / 414 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006042/0.1922, allocations: 339.8 kB / 414.3 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1922, allocations: 0 / 414.3 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.1923, allocations: 12 kB / 414.3 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.902e-06/0.1923, allocations: 8 kB / 414.3 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007331/0.193, allocations: 314 kB / 414.7 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.1945, allocations: 1.178 MB / 415.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007444/0.1953, allocations: 282.5 kB / 416.1 MB, free: 19.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.1956, allocations: 124.8 kB / 416.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.1956, allocations: 0 / 416.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.196, allocations: 205.7 kB / 416.4 MB, free: 19.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.196, allocations: 0 / 416.4 MB, free: 19.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002094/0.1981, allocations: 0.7332 MB / 417.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.1982, allocations: 106.8 kB / 417.3 MB, free: 18.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.1984, allocations: 282.6 kB / 417.5 MB, free: 17.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1984, allocations: 25.7 kB / 417.6 MB, free: 17.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.449e-05/0.1985, allocations: 203.7 kB / 417.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.1985, allocations: 43.3 kB / 417.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.322e-05/0.1986, allocations: 8 kB / 417.8 MB, free: 17.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.359e-05/0.1986, allocations: 334.8 kB / 418.1 MB, free: 17.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.1989, allocations: 116.4 kB / 418.3 MB, free: 17.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.1993, allocations: 216.9 kB / 418.5 MB, free: 16.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000608/0.1999, allocations: 339.7 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1999, allocations: 4 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001084/0.201, allocations: 0.4995 MB / 419.3 MB, free: 16.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.201, allocations: 41.62 kB / 419.3 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.201, allocations: 4.062 kB / 419.3 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003229/0.2014, allocations: 84.8 kB / 419.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.2016, allocations: 59.91 kB / 419.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.2035, allocations: 1.842 MB / 421.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.2038, allocations: 55.81 kB / 421.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.2038, allocations: 20.22 kB / 421.4 MB, free: 13.8 MB / 298.7 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 ($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 (23): * Single equations (assignments): 21 * 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.000118/0.2039, allocations: 149.7 kB / 421.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.204, allocations: 31.66 kB / 421.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.845e-05/0.204, allocations: 21.83 kB / 421.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.204, allocations: 4 kB / 421.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.204, allocations: 0 / 421.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.204, allocations: 0 / 421.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.2042, allocations: 329.2 kB / 421.9 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2043, allocations: 4 kB / 421.9 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.2044, allocations: 27.97 kB / 422 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002474/0.2046, allocations: 84.8 kB / 422 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.2047, allocations: 4 kB / 422 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001647/0.2063, allocations: 1.714 MB / 423.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2063, allocations: 0 / 423.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009434/0.2073, allocations: 409.4 kB / 424.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.463e-05/0.2073, allocations: 112.7 kB / 424.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.2074, allocations: 4 kB / 424.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.2076, allocations: 35.97 kB / 424.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/0.2077, allocations: 23.97 kB / 424.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.2077, allocations: 3.984 kB / 424.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001392/0.2079, allocations: 201.9 kB / 424.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2079, allocations: 0 / 424.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003352/0.2082, allocations: 79.84 kB / 424.6 MB, free: 10.36 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.001123/0.2093, allocations: 0.944 MB / 425.6 MB, free: 9.387 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008261/0.2102, allocations: 456.6 kB / 426 MB, free: 8.918 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2102, allocations: 0 / 426 MB, free: 8.918 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.2106, allocations: 255 kB / 426.3 MB, free: 8.656 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.2109, allocations: 54.8 kB / 426.3 MB, free: 8.605 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.2137, allocations: 1.835 MB / 428.1 MB, free: 6.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.2138, allocations: 0.7596 MB / 428.9 MB, free: 5.898 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.214, allocations: 79.41 kB / 429 MB, free: 5.824 MB / 298.7 MB Notification: Performance of SimCode: time 4.2e-07/0.214, allocations: 4 kB / 429 MB, free: 5.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.893/3.107, allocations: 5.428 MB / 434.4 MB, free: 404 kB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.simplifiedExpr,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.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