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: translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.00161, allocations: 191.7 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 226.6 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007642/0.0007642, allocations: 108.4 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002016/0.0002016, allocations: 8 kB / 356.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1889, allocations: 51.29 MB / 408 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.001884/0.1909, allocations: 2.38 MB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006859/0.1916, allocations: 0.6447 MB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.1917, allocations: 7.938 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.682e-05/0.1918, allocations: 31.77 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.1919, allocations: 75.38 kB / 411.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.1921, allocations: 66.58 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.1924, allocations: 342.5 kB / 411.6 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.1925, allocations: 105 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.1926, allocations: 119.6 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.1928, allocations: 139.4 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.1928, allocations: 20 kB / 412 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.893e-05/0.1928, allocations: 16 kB / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.875e-05/0.1929, allocations: 63.67 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.193, allocations: 165 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.1932, allocations: 272.2 kB / 412.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1932, allocations: 0 / 412.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1932, allocations: 0 / 412.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1932, allocations: 4 kB / 412.5 MB, free: 23.3 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.000883/0.1941, allocations: 0.6147 MB / 413.1 MB, free: 22.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.1941, allocations: 12.03 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.815e-05/0.1942, allocations: 36.56 kB / 413.1 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.1944, allocations: 272.6 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.1944, allocations: 16.94 kB / 413.4 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.1945, allocations: 28.38 kB / 413.4 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005332/0.195, allocations: 315.7 kB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.195, allocations: 0 / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.1951, allocations: 16 kB / 413.8 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1951, allocations: 4 kB / 413.8 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006551/0.1957, allocations: 277.5 kB / 414 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.197, allocations: 1.105 MB / 415.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006392/0.1976, allocations: 234.5 kB / 415.4 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/0.1979, allocations: 108.8 kB / 415.5 MB, free: 20.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.1979, allocations: 0 / 415.5 MB, free: 20.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000367/0.1983, allocations: 181.8 kB / 415.7 MB, free: 19.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.1983, allocations: 0 / 415.7 MB, free: 19.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001719/0.2001, allocations: 0.5418 MB / 416.2 MB, free: 19.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.2001, allocations: 114.8 kB / 416.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.2003, allocations: 282.6 kB / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.2003, allocations: 33.7 kB / 416.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.314e-05/0.2004, allocations: 195.5 kB / 416.8 MB, free: 18.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.2004, allocations: 39.53 kB / 416.8 MB, free: 18.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.479e-05/0.2005, allocations: 8 kB / 416.9 MB, free: 18.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.661e-05/0.2005, allocations: 334.8 kB / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.2008, allocations: 108.2 kB / 417.3 MB, free: 18.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.2011, allocations: 210.1 kB / 417.5 MB, free: 17.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005439/0.2017, allocations: 325.2 kB / 417.8 MB, free: 17.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2017, allocations: 7.938 kB / 417.8 MB, free: 17.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000954/0.2026, allocations: 447.7 kB / 418.3 MB, free: 17.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.2027, allocations: 33.7 kB / 418.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2027, allocations: 4 kB / 418.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002706/0.203, allocations: 76.84 kB / 418.4 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.2031, allocations: 51.89 kB / 418.4 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.2047, allocations: 1.602 MB / 420 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/0.205, allocations: 63.72 kB / 420.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.2051, allocations: 11.98 kB / 420.1 MB, free: 15.1 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 9.681e-05/0.2052, allocations: 141.8 kB / 420.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.2052, allocations: 27.66 kB / 420.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.2052, allocations: 25.7 kB / 420.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2052, allocations: 8 kB / 420.3 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.81e-07/0.2052, allocations: 0 / 420.3 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2053, allocations: 0 / 420.3 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.2054, allocations: 305.3 kB / 420.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2054, allocations: 0 / 420.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.2056, allocations: 23.92 kB / 420.6 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002055/0.2058, allocations: 68.8 kB / 420.7 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.2058, allocations: 8 kB / 420.7 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.2072, allocations: 1.574 MB / 422.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2072, allocations: 0 / 422.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008089/0.208, allocations: 347.3 kB / 422.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-05/0.2081, allocations: 116.7 kB / 422.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.2081, allocations: 3.984 kB / 422.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.2084, allocations: 39.97 kB / 422.8 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.408e-05/0.2084, allocations: 19.97 kB / 422.8 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.2084, allocations: 7.984 kB / 422.8 MB, free: 12.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001321/0.2086, allocations: 198 kB / 423 MB, free: 11.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2086, allocations: 0 / 423 MB, free: 11.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002796/0.2089, allocations: 83.84 kB / 423.1 MB, free: 11.9 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 7.931e-05/0.209, allocations: 99.25 kB / 423.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007502/0.2097, allocations: 434.3 kB / 423.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2097, allocations: 0 / 423.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.2101, allocations: 234.7 kB / 423.8 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.2104, allocations: 55.14 kB / 423.9 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007002/0.2111, allocations: 0.5728 MB / 424.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.2112, allocations: 0.7521 MB / 425.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.946e-05/0.2113, allocations: 19.44 kB / 425.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2113, allocations: 0 / 425.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of Templates: time 0.004422/0.2157, allocations: 4.375 MB / 429.6 MB, free: 5.293 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (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 & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/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) Reference file matches