Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009386/0.0009387, allocations: 190.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007598/0.0007598, allocations: 91.84 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002098/0.0002101, allocations: 12 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1859, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.001934/0.1879, allocations: 2.38 MB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006948/0.1886, allocations: 0.6498 MB / 411.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1888, allocations: 4.531 kB / 411.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.637e-05/0.1889, allocations: 38.28 kB / 411.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.189, allocations: 71.38 kB / 411.3 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.1892, allocations: 60.56 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.1894, allocations: 343 kB / 411.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.1896, allocations: 103.1 kB / 411.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.1897, allocations: 123.5 kB / 411.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.1898, allocations: 143.4 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.1899, allocations: 24 kB / 412.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.002e-05/0.1899, allocations: 16 kB / 412.1 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.959e-05/0.19, allocations: 51.77 kB / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.1901, allocations: 161 kB / 412.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.1903, allocations: 276.5 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1903, allocations: 0 / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1903, allocations: 0 / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1903, allocations: 0 / 412.5 MB, free: 23.27 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009422/0.1912, allocations: 0.6225 MB / 413.2 MB, free: 22.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.1913, allocations: 12.03 kB / 413.2 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.664e-05/0.1913, allocations: 58.73 kB / 413.2 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/0.1914, allocations: 32.56 kB / 413.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.1916, allocations: 276.6 kB / 413.5 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.1916, allocations: 16.94 kB / 413.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.1917, allocations: 24.38 kB / 413.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.1923, allocations: 315.5 kB / 413.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1923, allocations: 0 / 413.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.1923, allocations: 12 kB / 413.9 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1923, allocations: 4 kB / 413.9 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000707/0.193, allocations: 281.5 kB / 414.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.1943, allocations: 1.109 MB / 415.3 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007049/0.1951, allocations: 234.5 kB / 415.5 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002796/0.1954, allocations: 108.9 kB / 415.6 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.1954, allocations: 3.938 kB / 415.6 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.1958, allocations: 181.8 kB / 415.8 MB, free: 19.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.1958, allocations: 0 / 415.8 MB, free: 19.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001865/0.1977, allocations: 0.5433 MB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.1977, allocations: 106.8 kB / 416.5 MB, free: 19.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.1979, allocations: 290.5 kB / 416.7 MB, free: 18.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.1979, allocations: 29.7 kB / 416.8 MB, free: 18.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/0.198, allocations: 195.5 kB / 417 MB, free: 18.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.1981, allocations: 39.55 kB / 417 MB, free: 18.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/0.1981, allocations: 7.938 kB / 417 MB, free: 18.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.379e-05/0.1981, allocations: 334.8 kB / 417.3 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.1984, allocations: 108.2 kB / 417.4 MB, free: 18.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.1988, allocations: 206.1 kB / 417.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005993/0.1994, allocations: 338.2 kB / 418 MB, free: 17.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1994, allocations: 0 / 418 MB, free: 17.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001039/0.2004, allocations: 438.8 kB / 418.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.2005, allocations: 37.8 kB / 418.4 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.2005, allocations: 11.94 kB / 418.4 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000288/0.2008, allocations: 72.73 kB / 418.5 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.201, allocations: 55.95 kB / 418.6 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/0.2027, allocations: 1.597 MB / 420.2 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/0.203, allocations: 63.72 kB / 420.2 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.203, allocations: 12 kB / 420.2 MB, free: 14.99 MB / 298.7 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 ($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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.2031, allocations: 149.7 kB / 420.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/0.2032, allocations: 23.72 kB / 420.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.755e-05/0.2032, allocations: 21.7 kB / 420.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2032, allocations: 4 kB / 420.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.2032, allocations: 0 / 420.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2032, allocations: 3.984 kB / 420.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.2034, allocations: 301.4 kB / 420.7 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2034, allocations: 0 / 420.7 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.2035, allocations: 23.97 kB / 420.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002281/0.2038, allocations: 72.8 kB / 420.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.2038, allocations: 4 kB / 420.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.2054, allocations: 1.582 MB / 422.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2054, allocations: 0 / 422.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009044/0.2063, allocations: 336.8 kB / 422.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.2064, allocations: 120.7 kB / 422.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.407e-05/0.2064, allocations: 4 kB / 422.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.2066, allocations: 39.95 kB / 422.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.01e-05/0.2067, allocations: 27.91 kB / 422.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.2068, allocations: 4 kB / 422.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001356/0.2069, allocations: 198 kB / 423.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2069, allocations: 0 / 423.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000294/0.2072, allocations: 79.84 kB / 423.2 MB, free: 11.8 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 (7): * Single equations (assignments): 4 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001069/0.2083, allocations: 0.8821 MB / 424.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008186/0.2091, allocations: 422 kB / 424.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2091, allocations: 0.625 kB / 424.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003806/0.2095, allocations: 234.5 kB / 424.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.2098, allocations: 55.14 kB / 424.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.2125, allocations: 1.724 MB / 426.5 MB, free: 8.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.2127, allocations: 0.7518 MB / 427.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.2128, allocations: 71.42 kB / 427.3 MB, free: 7.488 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2128, allocations: 0 / 427.3 MB, free: 7.488 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.872/3.084, allocations: 5.063 MB / 432.4 MB, free: 2.418 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_trunk_cpp_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.s,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.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,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